From 63060a9db839ec4e4b504334b9f2d15b35d2e933 Mon Sep 17 00:00:00 2001 From: baiobelfer Date: Thu, 4 Sep 2025 12:54:12 +0200 Subject: [PATCH] pozycjonowaanie textu na png@header --- css/layout.css | 18 ++++++++++++++++++ i1.html | 5 ++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/css/layout.css b/css/layout.css index 33ffbb8..19a2188 100644 --- a/css/layout.css +++ b/css/layout.css @@ -3,4 +3,22 @@ body { background-color: #EAEAEA; margin: 0; padding: 0; +} + +header { + position: relative; + text-align: center; +} + +header img { + width: 100%; +} +.header-text { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + color: white; + font-size: 48px; + font-weight: bold; } \ No newline at end of file diff --git a/i1.html b/i1.html index 7047556..30a0cc0 100644 --- a/i1.html +++ b/i1.html @@ -6,10 +6,13 @@ +
kursy komputerowe -
hello
+
Kursy komputerowe
+ +