viewport hight

This commit is contained in:
Lanta 2023-10-04 09:04:16 +02:00
parent dbd99b5bdf
commit a2bb9f8898

View file

@ -12,6 +12,9 @@ body {
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
background: linear-gradient(to right, #0f2027, #203a43, #2c5364); background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
color: white; color: white;
min-height: 100vh; /* 100% of the viewport's height */
display: flex;
flex-direction: column;
} }
@ -51,7 +54,7 @@ nav a:active {
} }
header, main, footer { header, main, footer {
max-width: 1200px; max-width: 800px;
margin: 20px auto; margin: 20px auto;
padding: 20px; padding: 20px;
border: 1px solid white; border: 1px solid white;