Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <head>
  5. <style>
  6. head {
  7. padding-top: 0;
  8. margin-top: 0;
  9. border: none;
  10. }
  11.  
  12. header {
  13. width: 100%;
  14. height: 15%;
  15. padding-bottom: 20px;
  16. background-color: navy;
  17. align-content: center;
  18. align-items: center;
  19. border-bottom: pink 5px solid;
  20. }
  21.  
  22. #image1 {
  23. display: block;
  24. margin-left: auto;
  25. margin-right: auto;
  26. height: 10vh;
  27. width: 10vh;
  28. }
  29.  
  30.  
  31.  
  32. nav {
  33. /* padding: 20px; */
  34. height: 78vh;
  35. width: 30%;
  36. background-color: navy;
  37. color: white;
  38. margin-right: 50%;
  39. float: left;
  40. }
  41.  
  42. ul {
  43. list-style-type: none;
  44. margin: 0;
  45. padding: 0;
  46. text-align: center;
  47.  
  48. }
  49.  
  50. li {
  51. display: block;
  52. }
  53.  
  54. li a {
  55. color: white;
  56. text-decoration: none;
  57. display: block;
  58. padding: 8px 8px;
  59. }
  60.  
  61. li a:hover {
  62. background-color: purple;
  63. }
  64.  
  65. #main-box {
  66. float: left;
  67. }
  68.  
  69. #lefty {
  70. background-color: orangered;
  71. color: black;
  72. height: 30vh;
  73. width: 20vh;
  74. float: right;
  75. }
  76.  
  77. #righty {
  78. background-color: orangered;
  79. color: black;
  80. }
  81.  
  82. #img1 {
  83. width: 50vh;
  84. height: 20vh;
  85. border: pink 5px solid;
  86. }
  87.  
  88. footer {
  89. float: left;
  90. height: 7.5vh;
  91. width: 100%;
  92. background-color: navy;
  93. color: white;
  94. border-top: 5px pink solid;
  95. padding-top: 20px;
  96. text-align: center;
  97. }
  98. </style>
  99. </head>
  100.  
  101. <body>
  102.  
  103. <body style="margin: 0;"></body>
  104. <header>
  105. <img src="images1.jpg" id="image1">
  106. </header>
  107.  
  108. <nav>
  109. <ul>
  110. <li>
  111. <a href="">
  112. <h3>Home</h3>
  113. </a>
  114. </li>
  115. <li>
  116. <a href="">
  117. <h3>About</h3>
  118. </a>
  119. </li>
  120. <li>
  121. <a href="">
  122. <h3>Services</h3>
  123. </a>
  124. </li>
  125. <li>
  126. <a href="contact.html">
  127. <h3>Contact Us</h3>
  128. </a>
  129. </li>
  130. </ul>
  131. </nav>
  132.  
  133. <div id="main-box">
  134. <h2>About Us</h2>
  135. <img src="images.jpg" id="img1">
  136. <div id="lefty">
  137.  
  138. </div>
  139. <div id="righty"></div>
  140.  
  141. <footer>
  142. <p>© 2018</p>
  143. </footer>
  144.  
  145. </body>
  146.  
  147. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement