Jvsierra

cuahuifhasuifhaui

Oct 22nd, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="pt-br">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Exemplo Tableless</title>
  6.  
  7. <style type="text/css">
  8. *
  9. {
  10. text-align: justify;
  11. font-family: Calibri, sans-serif;
  12. font-size:25px;
  13. }
  14.  
  15. #principal
  16. {
  17. width:95%;
  18. background-color: beige;
  19. height: 600px;
  20. position: relative;
  21. margin: 0 auto;
  22. }
  23.  
  24. #topo
  25. {
  26. width: 100%;
  27. height: 15%;
  28. background-color: blue;
  29. }
  30.  
  31. #conteudo
  32. {
  33. width: 75%;
  34. height: 70%;
  35. float: left;
  36. z-index: 0;
  37. }
  38.  
  39. #img
  40. {
  41. width:25%;
  42. height: 30%;
  43. float: left;
  44. background-color: red;
  45. }
  46.  
  47. #extra
  48. {
  49. width: 25%;
  50. height: 40%;
  51. float: left;
  52. background-color: orange;
  53. }
  54.  
  55. #rodape
  56. {
  57. width: 100%;
  58. height: 10%;
  59. float: left;
  60. background-color: green;
  61. }
  62.  
  63. /*-------------------------------------Classes do Menu--------------------------*/
  64.  
  65. #barramenu
  66. {
  67. width: 100%;
  68. height: 10%;
  69. float: left;
  70. background-color: yellow;
  71. }
  72.  
  73. #barramenu nav
  74. {
  75. width: 15%;
  76. height: 90%;
  77. padding: 3px;
  78. background-color: maroon;
  79. color:white;
  80. float: left;
  81. margin-left: 5%;
  82. }
  83.  
  84. #barramenu nav:hover
  85. {
  86. height:200%;
  87. position: relative;
  88. transition: height 1s;
  89. z-index: 10;
  90. }
  91. </style>
  92. </head>
  93.  
  94. <body>
  95. <section id="principal">
  96. <header id="topo">
  97.  
  98. </header>
  99.  
  100. <nav id="barramenu">
  101. <nav>
  102. Menu 1<br />
  103. Opção 1.1<br />
  104. Opção 1.2
  105. </nav>
  106.  
  107. <nav>
  108. Menu 2<br />
  109. Opção 2.1<br />
  110. Opção 2.2
  111. </nav>
  112.  
  113. <nav>
  114. Menu 3<br />
  115. Opção 3.1<br />
  116. Opção 3.2
  117. </nav>
  118. </nav>
  119.  
  120. <article id="conteudo">
  121.  
  122. </article>
  123.  
  124. <aside id="img">
  125.  
  126. </aside>
  127.  
  128. <aside id="extra">
  129.  
  130. </aside>
  131.  
  132. <footer id="rodape">
  133.  
  134. </footer>
  135. </section>
  136. </body>
  137.  
  138. </html>
Advertisement
Add Comment
Please, Sign In to add comment