Compare commits
6 Commits
48973968fb
...
e717d96683
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e717d96683 | ||
|
|
10a2452ad3 | ||
|
|
a9e4b4bafb | ||
|
|
63060a9db8 | ||
|
|
e26fa89233 | ||
|
|
63c9e396b9 |
@ -14,6 +14,14 @@ header img {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
position: absolute – wyrzuca tekst z normalnego przepływu strony i umieszcza go nad obrazkiem.
|
||||||
|
top: 50%; left: 50% – zaczyna od środka nagłówka.
|
||||||
|
transform: translate(-50%, -50%) – przesuwa tekst o połowę jego szerokości/wysokości, by był idealnie wyśrodkowany.
|
||||||
|
color: white – biały tekst na ciemnym tle obrazka.
|
||||||
|
font-size: 48px – duży tekst.
|
||||||
|
*/
|
||||||
|
|
||||||
.header-text {
|
.header-text {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
@ -24,6 +32,10 @@ header img {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
nav (menu) i footer (stopka) mają ciemnoszare tło (#625B5B), biały tekst i padding.
|
||||||
|
text-align: center – centruje zawartość.
|
||||||
|
*/
|
||||||
nav, footer {
|
nav, footer {
|
||||||
background-color: #625B5B;
|
background-color: #625B5B;
|
||||||
color: white;
|
color: white;
|
||||||
@ -31,6 +43,16 @@ nav, footer {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
a w nav to linki:
|
||||||
|
font-weight: bold – pogrubienie
|
||||||
|
background-color: #EAEAEA – jasny tło przycisków
|
||||||
|
color: #625B5B – ciemny kolor tekstu
|
||||||
|
padding: 10px – przestrzeń wewnątrz przycisku
|
||||||
|
margin: 50px – duża przestrzeń między linkami
|
||||||
|
border-radius: 20px – zaokrąglone rogi
|
||||||
|
text-decoration: none – usuwa podkreślenie linków
|
||||||
|
*/
|
||||||
nav a {
|
nav a {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
background-color: #EAEAEA;
|
background-color: #EAEAEA;
|
||||||
@ -45,24 +67,4 @@ nav a:hover {
|
|||||||
background-color: #625B5B;
|
background-color: #625B5B;
|
||||||
color: #EAEAEA;
|
color: #EAEAEA;
|
||||||
border: 1px solid #EAEAEA;
|
border: 1px solid #EAEAEA;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
|
||||||
margin-left: 40px;
|
|
||||||
list-style-type: circle;
|
|
||||||
}
|
|
||||||
|
|
||||||
table {
|
|
||||||
border: 1px dashed #625B5B;
|
|
||||||
width: 60%;
|
|
||||||
margin-left: 40px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kontrolki {
|
|
||||||
margin: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
main {
|
|
||||||
padding: 20px;
|
|
||||||
}
|
|
||||||
6
i1.html
6
i1.html
@ -6,15 +6,19 @@
|
|||||||
<link rel="stylesheet" href="css/layout.css">
|
<link rel="stylesheet" href="css/layout.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
<img src="imgs/baner.png" alt="kursy komputerowe">
|
<img src="imgs/baner.png" alt="kursy komputerowe">
|
||||||
<div class="header-text">hello</div>
|
<div class="header-text">Kursy komputerowe</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
<a href="i1.html">Strona główna</a>
|
<a href="i1.html">Strona główna</a>
|
||||||
<a href="raty.html">Koszt rat</a>
|
<a href="raty.html">Koszt rat</a>
|
||||||
<a href="https://moje-szkolenia.pl/">Nasz partner</a>
|
<a href="https://moje-szkolenia.pl/">Nasz partner</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<h3>Kursy komputerowe - programowanie</h3>
|
<h3>Kursy komputerowe - programowanie</h3>
|
||||||
<table>
|
<table>
|
||||||
|
|||||||
BIN
imgs/baner.png
BIN
imgs/baner.png
Binary file not shown.
|
Before Width: | Height: | Size: 184 KiB After Width: | Height: | Size: 171 KiB |
Loading…
Reference in New Issue
Block a user