Created
March 17, 2023 01:26
-
-
Save ermogenes/3046ff8735aa21daa3f3e1c40812aa8a to your computer and use it in GitHub Desktop.
Aula 16/03/2023 - Flex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Aula PC2</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<header>Topo</header> | |
<section> | |
<nav>Menu</nav> | |
<main>Conteúdo</main> | |
<aside>Propaganda</aside> | |
</section> | |
<footer>Rodapé</footer> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
margin: 0; | |
padding: 0; | |
min-height: 100vh; | |
display: flex; | |
flex-direction: column; | |
} | |
header { | |
background-color: blue; | |
} | |
section { | |
background-color: green; | |
flex: 1; | |
display: flex; | |
align-items: flex-start; | |
} | |
footer { | |
background-color: red; | |
} | |
nav { | |
background-color: darkcyan; | |
flex-basis: 200px; | |
flex-shrink: 0; | |
} | |
main { | |
background-color: #fff; | |
flex: 1; | |
align-self: stretch; | |
} | |
aside { | |
background-color: deepskyblue; | |
flex-basis: 150px; | |
flex-shrink: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment