Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="pt-br">
- <head>
- <meta charset="utf-8">
- <!–- Importante setar o charset para questão de acentuação correta. ->
- <title>HTML5 Página de Layout</title>
- <style>
- body {
- font: 14px Arial,sans-serif;
- margin: 0px;
- }
- header {
- padding: 10px 20px;
- background: #666;
- color: #fff;
- }
- header h1 {
- font-size: 24px;
- }
- .container {
- width: 100%;
- background: #f2f2f2;
- }
- nav, section {
- float: left;
- padding: 20px;
- min-height: 170px;
- box-sizing: border-box;
- }
- section {
- width: 80%;
- }
- nav {
- width: 20%;
- background: #d4d7dc;
- }
- nav ul {
- list-style: none;
- line-height: 24px;
- padding: 0px;
- }
- nav ul li a {
- color: #333;
- }
- .clearfix:after {
- content: ".";
- display: block;
- height: 0;
- clear: both;
- visibility: hidden;
- }
- footer {
- background: #acb3b9;
- text-align: center;
- padding: 5px;
- }
- </style>
- </head>
- <body>
- <div class="container">
- <header>
- <h1>NOME DO SITE</h1>
- </header>
- <div class="wrapper clearfix">
- <nav>
- <ul>
- <li><a href="#">Home</a></li>
- <li><a href="#">Sobre</a></li>
- <li><a href="#">Contato</a></li>
- </ul>
- </nav>
- <section>
- <h2>Bem vindo ao site</h2>
- <p>Estamos fazendo um layout de site...</p>
- </section>
- </div>
- <footer>
- <p>Rodapé com dados e redes sociais</p>
- </footer>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment