Skip to content

Commit d046d5a

Browse files
Enhance layout with flex properties and overflow handling
1 parent 10b73fe commit d046d5a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Wireframe/style.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,21 @@ body {
1515
font-family: Arial, sans-serif;
1616
display: flex;
1717
flex-direction: column;
18-
min-height: 100vh; /* ← ADD THIS: ensures body is at least full viewport height */
18+
min-height: 100vh;
1919
}
2020

2121
/* Make main content flexible to push footer down */
2222
main {
2323
flex: 1;
2424
padding: 20px;
25+
overflow-y: auto;
2526
}
2627

2728
/* Center the page title */
2829
header {
2930
text-align: center;
3031
padding: 20px 20px 0;
32+
flex-shrink: 0;
3133
}
3234

3335
/* Layout for the articles */
@@ -62,4 +64,5 @@ footer {
6264
padding: 10px 20px;
6365
border-top: 1px solid #ccc;
6466
background-color: #f9f9f9;
67+
flex-shrink: 0;
6568
}

0 commit comments

Comments
 (0)