Advertisement
Guest User

Untitled

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