Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
86863e1fd9 | ||
|
|
db80169e66 | ||
|
|
d850ff8029 | ||
|
|
e717d96683 | ||
|
|
10a2452ad3 | ||
|
|
a9e4b4bafb | ||
|
|
63060a9db8 | ||
|
|
e26fa89233 | ||
|
|
63c9e396b9 |
@ -14,6 +14,14 @@ header img {
|
||||
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 {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
@ -24,6 +32,10 @@ header img {
|
||||
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 {
|
||||
background-color: #625B5B;
|
||||
color: white;
|
||||
@ -31,6 +43,16 @@ nav, footer {
|
||||
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 {
|
||||
font-weight: bold;
|
||||
background-color: #EAEAEA;
|
||||
@ -41,17 +63,29 @@ nav a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Efekt po najechaniu myszą:
|
||||
Tło staje się ciemne, tekst jasny → efekt "przełączania"
|
||||
border: 1px solid – dodaje obramowanie */
|
||||
|
||||
nav a:hover {
|
||||
background-color: #625B5B;
|
||||
color: #EAEAEA;
|
||||
border: 1px solid #EAEAEA;
|
||||
}
|
||||
|
||||
/* margin-left: 40px – wcięcie listy
|
||||
list-style-type: circle – kropki jako kółka */
|
||||
|
||||
ul {
|
||||
margin-left: 40px;
|
||||
list-style-type: circle;
|
||||
}
|
||||
|
||||
/* border: 1px dashed – przerywana linia wokół tabeli
|
||||
width: 60% – tabela zajmuje 60% szerokości kontenera
|
||||
margin-left: 40px – wcięcie od lewej
|
||||
text-align: center – tekst w tabeli jest wyśrodkowany */
|
||||
|
||||
table {
|
||||
border: 1px dashed #625B5B;
|
||||
width: 60%;
|
||||
@ -59,10 +93,13 @@ table {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Klasa .kontrolki – np. dla przycisków, daje mały margines. */
|
||||
.kontrolki {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
/* main – główna treść strony ma wewnętrzny odstęp 20px od brzegów. */
|
||||
|
||||
main {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
6
i1.html
6
i1.html
@ -6,15 +6,19 @@
|
||||
<link rel="stylesheet" href="css/layout.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header>
|
||||
<img src="imgs/baner.png" alt="kursy komputerowe">
|
||||
<div class="header-text">hello</div>
|
||||
<div class="header-text">Kursy komputerowe</div>
|
||||
</header>
|
||||
|
||||
|
||||
<nav>
|
||||
<a href="i1.html">Strona główna</a>
|
||||
<a href="raty.html">Koszt rat</a>
|
||||
<a href="https://moje-szkolenia.pl/">Nasz partner</a>
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
<h3>Kursy komputerowe - programowanie</h3>
|
||||
<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