Guest User

Untitled

a guest
Sep 24th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.34 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html>
  4.  
  5. <head>
  6. <title>Semantic page</title>
  7.  
  8. <meta name="viewport"
  9. content="width=device-width, initial-scale=1.0">
  10.  
  11. <style>
  12. *
  13. {
  14. box-sizing: border-box;
  15. }
  16.  
  17. body
  18. {
  19. margin: 0;
  20. }
  21.  
  22. .clearfix::after
  23. {
  24. content: "";
  25. clear: both;
  26. display: table;
  27. }
  28.  
  29. .img-container
  30. {
  31. float: left;
  32. width: 50%; /* 2 boxes */
  33. padding: 10px; /* space between the images */
  34. }
  35.  
  36. nav
  37. {
  38. margin: 0;
  39. padding: 0;
  40. overflow: hidden;
  41. background-color: navy;
  42. }
  43.  
  44. nav a
  45. {
  46. float: left;
  47. display: inline-block;
  48. color: white;
  49. text-align: center;
  50. padding: 16px;
  51. text-decoration: none;
  52. }
  53.  
  54. nav a:hover
  55. {
  56. background-color: hsl(240, 100%, 35%);
  57. }
  58.  
  59. nav a.active
  60. {
  61. color: navy;
  62. background-color: white;
  63. }
  64.  
  65. .column
  66. {
  67. float: left;
  68. padding: 15px;
  69. }
  70.  
  71. #sidenav
  72. {
  73. width: 20%;
  74. }
  75.  
  76. #sidenav ul
  77. {
  78. list-style-type: none;
  79. margin: 0;
  80. padding: 0;
  81. }
  82.  
  83. #sidenav li a
  84. {
  85. margin-bottom: 4px;
  86. display: block;
  87. padding: 8px;
  88. background-color: hsl(209, 70%, 90%);
  89. text-decoration: none;
  90. color: #444;
  91. }
  92.  
  93. #sidenav li a:hover
  94. {
  95. background-color: hsl(240, 100%, 80%);
  96. color: white;
  97. }
  98.  
  99. #sidenav li a.active
  100. {
  101. background-color: #008CBA;
  102. color: white;
  103. }
  104.  
  105. main
  106. {
  107. width: 80%;
  108. }
  109.  
  110. table, th, td
  111. {
  112. border: 1px solid grey;
  113. border-collapse: collapse;
  114. }
  115.  
  116. th, td
  117. {
  118. padding: 10px;
  119. }
  120.  
  121. footer
  122. {
  123. background-color: #eee;
  124. color: #aaa;
  125. padding: 10px 0 5px 0;
  126. text-align: center;
  127. }
  128.  
  129. /* Use a media query to add a break point at 800px: */
  130. @media screen and (max-width: 800px)
  131. {
  132. nav li, #sidenav, main
  133. {
  134. /* The width is 100%, when the viewport is 800px or smaller */
  135. width: 100%;
  136. }
  137. }
  138. </style>
  139. </head>
  140.  
  141. <body>
  142. <header class="clearfix">
  143. <div class="img-container">
  144. <img src="http://www.company.com/Images/Logo.jpg"
  145. alt="[Company logo]"
  146. style="width: 100%;">
  147. </div>
  148.  
  149. <div class="img-container">
  150. <img src="http://www.company.com/Images/Office.jpg"
  151. alt="[Company Office]"
  152. style="width: 100%;">
  153. </div>
  154. </header>
  155.  
  156. <nav>
  157. <a href="#AboutUs" class="active">ABOUT US</a>
  158. <a href="#Expertise">EXPERTISE</a>
  159. <a href="#Careers">CAREERS</a>
  160. <a href="#ContactUs">CONTACT US</a>
  161. </nav>
  162.  
  163. <div class="clearfix">
  164. <aside class="column"
  165. id="sidenav">
  166. <ul>
  167. <li><a href="#WhatWeDo">What we do</a></li>
  168. <li><a href="#WhyUs">Why Us?</a></li>
  169. <li><a href="#Technologies">Technologies</a></li>
  170. </ul>
  171. </aside>
  172.  
  173. <main class="column">
  174. <article>
  175. <h1>ABOUT THE COMPANY</h1>
  176.  
  177. <section id="WhatWeDo">
  178. <h2>What we do</h2>
  179.  
  180. <p>
  181. blah blah blah ...
  182. </p>
  183.  
  184. <br><hr>
  185. </section>
  186.  
  187. <section id="WhyUs">
  188. <h2>Why Us?</h2>
  189.  
  190. <p>More blah ...</p>
  191.  
  192. <br><hr>
  193. </section>
  194.  
  195. <section id="Technologies">
  196. <h2>Technologies</h2>
  197.  
  198. <p>Still more blah ...</p>
  199. </section>
  200. </article>
  201. </main>
  202. </div>
  203.  
  204. <footer>
  205. <a href = "Terms.html">Terms</a> |
  206. <a href = "Privacy.html">Privacy Policy</a> |
  207. <a href = "TrademarksCopyrights.html">Trademarks & Copyrights</a> |
  208. <a href = "Sitemap.html">Sitemap</a>
  209. <br />
  210. All rights reserved.
  211. </footer>
  212. </body>
  213.  
  214. <meta charset="utf-8">
  215. <title>SigmaCubes - Home</title>
  216.  
  217. <nav>
  218. <ul>
  219. <li>
  220. <a href="#AboutUs" class="active">ABOUT US</a>
  221. </li>
  222. </ul>
  223. </nav>
  224.  
  225. alt="[Company logo]"
  226. alt="[Company Office]"
  227.  
  228. <a href="#WhatWeDo">What we do</a>
  229. <a href = "Sitemap.html">Sitemap</a>
  230.  
  231. <br>
  232. <br />
  233.  
  234. nav li, #sidenav, main
  235.  
  236. nav li,
  237. #sidenav,
  238. main
Add Comment
Please, Sign In to add comment