Skip to content

Commit 427cf9e

Browse files
committed
update2
1 parent 5f07850 commit 427cf9e

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
</head>
99
<body>
1010
<header>
11-
<img src="banner1.jpg" alt="Banner Image" class="banner" />
12-
<h1>Data Literacy Toolkit</h1>
13-
</header>
11+
<div class="banner-container">
12+
<img src="your-image.jpg" alt="Banner" class="banner" />
13+
</div>
14+
</header>
1415

1516
<main>
1617
<section>

style.css

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,24 @@ body {
88
}
99

1010
header {
11-
background: #004080;
11+
background: #000000;
1212
color: #fff;
13-
text-align: center;
1413
padding: 1rem 0;
1514
}
1615

16+
.banner-container {
17+
display: flex;
18+
justify-content: center;
19+
align-items: center;
20+
}
21+
1722
.banner {
18-
width: 100%;
19-
height: auto;
2023
max-height: 300px;
21-
object-fit: cover;
24+
width: auto;
25+
height: auto;
2226
}
2327

28+
2429
main {
2530
padding: 2rem;
2631
max-width: 900px;

0 commit comments

Comments
 (0)