Advertisement
Crenox

How To Make A Website From Scratch - Drew Ryan

Jun 16th, 2015
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.40 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Massage by Tia</title>
  6. <meta name= "viewport" content="width-device-width, initial-scale=1.0">
  7. <link rel="stylesheet" type="text/css" href="drew.css">
  8. <style></style>
  9. </head>
  10. <body>
  11. <div id="wrapper">
  12. <div id="callout">
  13. <p>Call us at <b>215-555-5555</b></p>
  14. </div>
  15. <header>
  16. <a href="#"><img src="http://www.w3newbie.com/wp-content/uploads/massagelogo.png" alt="Massage By Tia" title="Massage by Tia"/></a>
  17. </header>
  18. <nav>
  19. <ul>
  20. <li class='active'><a href="#">Home</a></li>
  21. <li><a href="#">Facility</a></li>
  22. <li><a href="#">Services</a></li>
  23. <li><a href="#">Pricing</a></li>
  24. <li><a href="#">Hours</a></li>
  25. <li><a href="#">Contact</a></li>
  26. </ul>
  27. <div class="clearfix"></div>
  28. </nav>
  29. <div class="banner">
  30. <img src="http://www.w3newbie.com/wp-content/uploads/massagebanner.png"/>
  31. </div>
  32. <center><img src="http://www.w3newbie.com/wp-content/uploads/three_sayings.png"/></center>
  33. <section class="left-col">
  34. <p style="text-indent: 50px;">Our goal at Massage by Tia is to provide a quiet
  35. retreat in Philadelphia where you can think you've traveled
  36. to a far-off place surrounded by lush and and tropical
  37. vegetation. Our spacious massage room has its own
  38. distinct feel with special care given to providing a unique
  39. sessions to meet the needs of the individual client. Our
  40. tables are heated, provide soft padding for comfort, and
  41. we use the best linens available in the business today.</p>
  42. <p style="text-indent: 50px;">Our therapists maintain their professional knowledge
  43. and Pennsylvania State License by attending local and
  44. regional certified and advanced training classes in the art
  45. of massage.</p>
  46. </section>
  47. <aside class="sidebar">
  48. <div class="therapy">
  49. <img src="http://www.w3newbie.com/wp-content/uploads/therapist.jpg"/>
  50. </div>
  51. </aside>
  52. <div class="clearfix"></div>
  53. <div class ="section">
  54. <h3>Private Massage Area</h3>
  55. <img src="http://www.w3newbie.com/wp-content/uploads/private.png"/>
  56. <p>Our private rooms are available to all guests upon booking your relaxation session
  57. in advance. Our masseuses will cater to every need you and your guest have in our
  58. private rooms. Come here to relax and renew your mind, body and spirit with the serenity
  59. of being free of all distractions.</p>
  60. </div>
  61. <div class ="section">
  62. <h3>Sauna & Steam Room</h3>
  63. <img src="http://www.w3newbie.com/wp-content/uploads/sauna-steam.png"/>
  64. <p>Our state of the art sauna and steam room are offered free to our membered clients
  65. and at affordable rates to those who want to open up their pore with a healthy seat
  66. before or after our massage services put you in an even more relaxing state.</p>
  67. </div>
  68. <div class ="section">
  69. <h3>Resort Retreat</h3>
  70. <img src="http://www.w3newbie.com/wp-content/uploads/retreat.png"/>
  71. <p>For eight weeks out of the year, Tia and a select few of her top masseuses travel to
  72. Tahiti to host and offer a resort style relaxation getaway for clients who are looking
  73. for the absolute most astonishing vacation they can experience. Call us for details on our
  74. get aways.</p>
  75. </div>
  76. <center><img src="http://www.w3newbie.com/wp-content/uploads/ease.png"/></center>
  77. <footer>
  78. <div class="section">
  79. <p>Massage by Tia</p>
  80. <p><b>215-555-5555</b><br>
  81. 1700 Chestnut Street<br>
  82. Philadelphia, PA 19100<br>
  83. tia@massage.com</p>
  84. </div>
  85.  
  86. <div class="section">
  87. <p> Connect With Us!</p>
  88. <ul>
  89. <li><a href="#"><img src="http://www.w3newbie.com/wp-content/uploads/facebook1.png"/></li>
  90. <li><a href="#"><img src="http://www.w3newbie.com/wp-content/uploads/googleplus.png"/></li>
  91. <li><a href="#"><img src="http://www.w3newbie.com/wp-content/uploads/twitter1.png"/></li>
  92. <li><a href="#"><img src="http://www.w3newbie.com/wp-content/uploads/youtube1.png"/></li>
  93. </ul>
  94. </div>
  95.  
  96. <div class="section">
  97. <img src="http://www.w3newbie.com/wp-content/uploads/plant.png"/>
  98. </div>
  99. </footer>
  100. </div>
  101. <p style ="text-align: center; padding: 0px; text-decoration: none">&#169;Copyright - Massage by Tia, 2014.</p>
  102. </body>
  103. </html>
  104. -----------------------------------------------------------------------------------------------------------------------------
  105. body
  106. {
  107. background: #F1F0D1;
  108. font-family: Verdana, Tahoma, Arial, sans-serif;
  109. font-size: 18px;
  110. overflow: auto
  111. }
  112. h1, h2, h3
  113. {
  114. text-align: center;
  115. padding-left: 5%;
  116. color: #878E63;
  117. }
  118. p
  119. {
  120. padding: 2%;
  121. color: #878E63;
  122. text-decoration: none;
  123. }
  124. img
  125. {
  126. text-align: center;
  127. <!-- Makes sure that the images don't overflow outside of the wrapper -->
  128. max-width: 100%;
  129. height: auto;
  130. width: auto;
  131. }
  132. #wrapper
  133. {
  134. margin: 0 auto;
  135. max-width: 1020px;
  136. width: 98%;
  137. background: #FEFBE8;
  138. border: 1px solid #878363;
  139. border-radius: 2px;
  140. box-shadow: 0 0 10px 0px rgba(12, 3, 25, 0.8);
  141. }
  142. #callout
  143. {
  144. width: 100%;
  145. height: auto;
  146. background: #878E63;
  147. overflow: hidden;
  148. }
  149. #callout p
  150. {
  151. text-align: right;
  152. font-size: 13px;
  153. padding: 0.1% 5% 0 0;
  154. color: #F1F0D1;
  155. }
  156.  
  157. #callout p a
  158. {
  159. color: #F1F0D1;
  160. text-decoration: none;
  161. }
  162.  
  163. header
  164. {
  165. text-align: center;
  166. min-height: 125px;
  167. padding: 5px;
  168. width: 96%;
  169. }
  170.  
  171. nav ul
  172. {
  173. <!-- Removes the bullets from the navigation -->
  174. list-style: none;
  175. margin: 0;
  176. padding-left: 50px;
  177. }
  178.  
  179. nav ul li
  180. {
  181. list-style: none;
  182. float: left;
  183. border: 1px solid #878E63;
  184. width: 15%;
  185. }
  186.  
  187. nav ul li a
  188. {
  189. background: #F1F0D1;
  190. display: block;
  191. padding: 5% 12%;
  192. font-weight: bold;
  193. font-size: 18px;
  194. color: #878E63;
  195. text-decoration: none;
  196. text-align: center;
  197. }
  198.  
  199. nav ul li a:hover, nav ul li.active a
  200. {
  201. background-color: #878E63;
  202. color: #F1F0D1;
  203. }
  204.  
  205. .banner img
  206. {
  207. width: 100%;
  208. border-top: 1px solid #878E63;
  209. border-bottom: 1px solid #878E63;
  210. }
  211.  
  212. .clearfix
  213. {
  214. clear: both;
  215. }
  216.  
  217. .left-col
  218. {
  219. width: 55%;
  220. float: left;
  221. margin: -2% 1% 1% 1%;
  222. }
  223.  
  224. .sidebar
  225. {
  226. width: 40%;
  227. float: right;
  228. margin: 1%;
  229. text-align: center;
  230. }
  231.  
  232. .therapy
  233. {
  234. float: left;
  235. margin: 0 auto;
  236. width: 100%;
  237. height: auto;
  238. padding: 1%;
  239. }
  240.  
  241. .section
  242. {
  243. width: 29%;
  244. float: left;
  245. margin: 2% 2%;
  246. text-align: center;
  247. }
  248.  
  249. footer
  250. {
  251. background: #878E63;
  252. width: 100%;
  253. overflow: hidden;
  254. }
  255.  
  256. footer p, footer h3
  257. {
  258. color: #F1F0D1;
  259. }
  260.  
  261. footer p a
  262. {
  263. color: #F1F0D1;
  264. <!-- takes away the blue and underline away from links -->
  265. text-decoration: none;
  266. }
  267.  
  268. ul
  269. {
  270. list-style-type: none;
  271. margin: 0;
  272. padding: 0;
  273. }
  274.  
  275. li
  276. {
  277. display: inline;
  278. }
  279.  
  280. ul li img
  281. {
  282. height: 50px;
  283. }
  284.  
  285. /*-----------MEDIA-----------*/
  286. <!-- This is where you put the screen adjustment details -->
  287. @media screen and (max-width: 478px)
  288. {
  289. body
  290. {
  291. font-size: 13px;
  292. }
  293. }
  294.  
  295. @media screen and (max-width: 740px)
  296. {
  297. nav
  298. {
  299. width: 100;
  300. margin-bottom: 10px;
  301. }
  302.  
  303. nav ul
  304. {
  305. list-style: none;
  306. margin: 0 auto;
  307. padding-left: 0;
  308. }
  309.  
  310. nav ul li
  311. {
  312. text-align: center;
  313. margin-left: 0 auto;
  314. width: 100%;
  315. border-top: 1px solid #878E63;
  316. border-right: 0px solid #878E63;
  317. border-bottom: 1px solid #878E63;
  318. border-left: 0px solid #878E63;
  319. }
  320.  
  321. nav ul li a
  322. {
  323. padding: 8px 0;
  324. font-size 16px;
  325. }
  326.  
  327. .left-col
  328. {
  329. width: 100%;
  330. }
  331.  
  332. .sidebar
  333. {
  334. width: 100%;
  335. }
  336.  
  337. .section
  338. {
  339. float: left;
  340. width: 100%;
  341. margin: 0;
  342. }
  343. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement