hercioneto

LAYOUT HTML 5

May 8th, 2023
3,298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.84 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="pt-br">
  3. <head>
  4. <meta charset="utf-8">
  5.   <!–- Importante setar o charset para  questão de acentuação correta. ->
  6. <title>HTML5 Página de Layout</title>
  7. <style>
  8.     body {
  9.         font: 14px Arial,sans-serif;
  10.         margin: 0px;
  11.     }
  12.     header {
  13.         padding: 10px 20px;
  14.         background: #666;
  15.         color: #fff;
  16.     }
  17.     header h1 {
  18.         font-size: 24px;
  19.     }
  20.     .container {
  21.         width: 100%;
  22.         background: #f2f2f2;  
  23.     }
  24.     nav, section {
  25.         float: left;
  26.         padding: 20px;
  27.         min-height: 170px;
  28.         box-sizing: border-box;
  29.     }
  30.     section {
  31.         width: 80%;
  32.     }
  33.     nav {
  34.         width: 20%;            
  35.         background: #d4d7dc;
  36.     }    
  37.     nav ul {
  38.         list-style: none;
  39.         line-height: 24px;
  40.         padding: 0px;
  41.     }
  42.     nav ul li a {
  43.         color: #333;
  44.     }
  45.     .clearfix:after {
  46.         content: ".";
  47.         display: block;
  48.         height: 0;
  49.         clear: both;
  50.         visibility: hidden;
  51.     }
  52.     footer {
  53.         background: #acb3b9;            
  54.         text-align: center;
  55.         padding: 5px;
  56.     }
  57. </style>
  58. </head>
  59. <body>
  60.     <div class="container">
  61.         <header>
  62.             <h1>NOME DO SITE</h1>
  63.         </header>
  64.         <div class="wrapper clearfix">
  65.             <nav>
  66.                 <ul>
  67.                     <li><a href="#">Home</a></li>
  68.                     <li><a href="#">Sobre</a></li>
  69.                     <li><a href="#">Contato</a></li>
  70.                 </ul>
  71.             </nav>
  72.             <section>
  73.                 <h2>Bem vindo ao site</h2>
  74.                 <p>Estamos fazendo um layout de site...</p>
  75.             </section>
  76.         </div>
  77.         <footer>
  78.             <p>Rodapé com dados e redes sociais</p>
  79.         </footer>
  80.     </div>
  81. </body>
  82. </html>
Advertisement
Add Comment
Please, Sign In to add comment