From a9e4b4bafb42ac0124582eb676a1ec94db751562 Mon Sep 17 00:00:00 2001 From: baiobelfer Date: Thu, 4 Sep 2025 13:00:25 +0200 Subject: [PATCH] add comments --- css/layout.css | 12 +++++++++++- i1.html | 3 ++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/css/layout.css b/css/layout.css index 19a2188..aa59db5 100644 --- a/css/layout.css +++ b/css/layout.css @@ -13,6 +13,15 @@ header { 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%; @@ -21,4 +30,5 @@ header img { color: white; font-size: 48px; font-weight: bold; -} \ No newline at end of file +} + diff --git a/i1.html b/i1.html index 30a0cc0..659ceb8 100644 --- a/i1.html +++ b/i1.html @@ -6,7 +6,7 @@ - +
kursy komputerowe
Kursy komputerowe
@@ -18,6 +18,7 @@ Koszt rat Nasz partner +

Kursy komputerowe - programowanie