feat: add centered white "hello" text overlay on banner images
Co-authored-by: aider (openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
parent
f5c52bab2e
commit
e17d097b49
@ -5,10 +5,25 @@ body {
|
||||
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;
|
||||
}
|
||||
|
||||
nav, footer {
|
||||
background-color: #625B5B;
|
||||
color: white;
|
||||
|
||||
5
i1.html
5
i1.html
@ -6,8 +6,9 @@
|
||||
<link rel="stylesheet" href="css/layout.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<img src="imgs/baner.png" alt="kursy komputerowe">
|
||||
<header style="position: relative; text-align: center;">
|
||||
<img src="imgs/baner.png" alt="kursy komputerowe" style="width: 100%;">
|
||||
<div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 48px; font-weight: bold;">hello</div>
|
||||
</header>
|
||||
<nav>
|
||||
<a href="i1.html">Strona główna</a>
|
||||
|
||||
@ -6,8 +6,9 @@
|
||||
<link rel="stylesheet" href="css/layout.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<img src="imgs/baner.png" alt="kursy komputerowe">
|
||||
<header style="position: relative; text-align: center;">
|
||||
<img src="imgs/baner.png" alt="kursy komputerowe" style="width: 100%;">
|
||||
<div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 48px; font-weight: bold;">hello</div>
|
||||
</header>
|
||||
<nav>
|
||||
<a href="i1.html">Strona główna</a>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user