Horje Website
CSS Responsive Web Design – Hotel Template – CSS Code

CSS Responsive Web Design – Hotel Template

CSS Responsive Web Design - Hotel Template - CSS Code


 
  1. <!DOCTYPE html>
  2. <html>
  3. <title>W3.CSS Template</title>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
  7. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway">
  8. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  9. <style>
  10. body,h1,h2,h3,h4,h5,h6 {font-family: "Raleway", Arial, Helvetica, sans-serif}
  11. </style>
  12. <body class="w3-light-grey">
  13. <!-- Navigation Bar -->
  14. <div class="w3-bar w3-white w3-large">
  15. <a href="#" class="w3-bar-item w3-button w3-red w3-mobile"><i class="fa fa-bed w3-margin-right"></i>Logo</a>
  16. <a href="#rooms" class="w3-bar-item w3-button w3-mobile">Rooms</a>
  17. <a href="#about" class="w3-bar-item w3-button w3-mobile">About</a>
  18. <a href="#contact" class="w3-bar-item w3-button w3-mobile">Contact</a>
  19. <a href="#contact" class="w3-bar-item w3-button w3-right w3-light-grey w3-mobile">Book Now</a>
  20. </div>
  21. <!-- Header -->
  22. <header class="w3-display-container w3-content" style="max-width:1500px;">
  23. <img class="w3-image" src="https://www.w3schools.com//w3images/hotel.jpg" alt="The Hotel" style="min-width:1000px" width="1500" height="800">
  24. <div class="w3-display-left w3-padding w3-col l6 m8">
  25. <div class="w3-container w3-red">
  26. <h2><i class="fa fa-bed w3-margin-right"></i>Hotel Name</h2>
  27. </div>
  28. <div class="w3-container w3-white w3-padding-16">
  29. <form action="/action_page.php" target="_blank">
  30. <div class="w3-row-padding" style="margin:0 -16px;">
  31. <div class="w3-half w3-margin-bottom">
  32. <label><i class="fa fa-calendar-o"></i> Check In</label>
  33. <input class="w3-input w3-border" type="text" placeholder="DD MM YYYY" name="CheckIn" required>
  34. </div>
  35. <div class="w3-half">
  36. <label><i class="fa fa-calendar-o"></i> Check Out</label>
  37. <input class="w3-input w3-border" type="text" placeholder="DD MM YYYY" name="CheckOut" required>
  38. </div>
  39. </div>
  40. <div class="w3-row-padding" style="margin:8px -16px;">
  41. <div class="w3-half w3-margin-bottom">
  42. <label><i class="fa fa-male"></i> Adults</label>
  43. <input class="w3-input w3-border" type="number" value="1" name="Adults" min="1" max="6">
  44. </div>
  45. <div class="w3-half">
  46. <label><i class="fa fa-child"></i> Kids</label>
  47. <input class="w3-input w3-border" type="number" value="0" name="Kids" min="0" max="6">
  48. </div>
  49. </div>
  50. <button class="w3-button w3-dark-grey" type="submit"><i class="fa fa-search w3-margin-right"></i> Search availability</button>
  51. </form>
  52. </div>
  53. </div>
  54. </header>
  55. <!-- Page content -->
  56. <div class="w3-content" style="max-width:1532px;">
  57. <div class="w3-container w3-margin-top" id="rooms">
  58. <h3>Rooms</h3>
  59. <p>Make yourself at home is our slogan. We offer the best beds in the industry. Sleep well and rest well.</p>
  60. </div>
  61. <div class="w3-row-padding">
  62. <div class="w3-col m3">
  63. <label><i class="fa fa-calendar-o"></i> Check In</label>
  64. <input class="w3-input w3-border" type="text" placeholder="DD MM YYYY">
  65. </div>
  66. <div class="w3-col m3">
  67. <label><i class="fa fa-calendar-o"></i> Check Out</label>
  68. <input class="w3-input w3-border" type="text" placeholder="DD MM YYYY">
  69. </div>
  70. <div class="w3-col m2">
  71. <label><i class="fa fa-male"></i> Adults</label>
  72. <input class="w3-input w3-border" type="number" placeholder="1">
  73. </div>
  74. <div class="w3-col m2">
  75. <label><i class="fa fa-child"></i> Kids</label>
  76. <input class="w3-input w3-border" type="number" placeholder="0">
  77. </div>
  78. <div class="w3-col m2">
  79. <label><i class="fa fa-search"></i> Search</label>
  80. <button class="w3-button w3-block w3-black">Search</button>
  81. </div>
  82. </div>
  83. <div class="w3-row-padding w3-padding-16">
  84. <div class="w3-third w3-margin-bottom">
  85. <img src="https://www.w3schools.com//w3images/room_single.jpg" alt="Norway" style="width:100%">
  86. <div class="w3-container w3-white">
  87. <h3>Single Room</h3>
  88. <h6 class="w3-opacity">From $99</h6>
  89. <p>Single bed</p>
  90. <p>15m<sup>2</sup></p>
  91. <p class="w3-large"><i class="fa fa-bath"></i> <i class="fa fa-phone"></i> <i class="fa fa-wifi"></i></p>
  92. <button class="w3-button w3-block w3-black w3-margin-bottom">Choose Room</button>
  93. </div>
  94. </div>
  95. <div class="w3-third w3-margin-bottom">
  96. <img src="https://www.w3schools.com//w3images/room_double.jpg" alt="Norway" style="width:100%">
  97. <div class="w3-container w3-white">
  98. <h3>Double Room</h3>
  99. <h6 class="w3-opacity">From $149</h6>
  100. <p>Queen-size bed</p>
  101. <p>25m<sup>2</sup></p>
  102. <p class="w3-large"><i class="fa fa-bath"></i> <i class="fa fa-phone"></i> <i class="fa fa-wifi"></i> <i class="fa fa-tv"></i></p>
  103. <button class="w3-button w3-block w3-black w3-margin-bottom">Choose Room</button>
  104. </div>
  105. </div>
  106. <div class="w3-third w3-margin-bottom">
  107. <img src="https://www.w3schools.com//w3images/room_deluxe.jpg" alt="Norway" style="width:100%">
  108. <div class="w3-container w3-white">
  109. <h3>Deluxe Room</h3>
  110. <h6 class="w3-opacity">From $199</h6>
  111. <p>King-size bed</p>
  112. <p>40m<sup>2</sup></p>
  113. <p class="w3-large"><i class="fa fa-bath"></i> <i class="fa fa-phone"></i> <i class="fa fa-wifi"></i> <i class="fa fa-tv"></i> <i class="fa fa-glass"></i> <i class="fa fa-cutlery"></i></p>
  114. <button class="w3-button w3-block w3-black w3-margin-bottom">Choose Room</button>
  115. </div>
  116. </div>
  117. </div>
  118. <div class="w3-row-padding" id="about">
  119. <div class="w3-col l4 12">
  120. <h3>About</h3>
  121. <h6>Our hotel is one of a kind. It is truely amazing. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</h6>
  122. <p>We accept: <i class="fa fa-credit-card w3-large"></i> <i class="fa fa-cc-mastercard w3-large"></i> <i class="fa fa-cc-amex w3-large"></i> <i class="fa fa-cc-cc-visa w3-large"></i><i class="fa fa-cc-paypal w3-large"></i></p>
  123. </div>
  124. <div class="w3-col l8 12">
  125. <!-- Image of location/map -->
  126. <img src="https://www.w3schools.com//w3images/map.jpg" class="w3-image w3-greyscale" style="width:100%;">
  127. </div>
  128. </div>
  129. <div class="w3-row-padding w3-large w3-center" style="margin:32px 0">
  130. <div class="w3-third"><i class="fa fa-map-marker w3-text-red"></i> 423 Some adr, Chicago, US</div>
  131. <div class="w3-third"><i class="fa fa-phone w3-text-red"></i> Phone: +00 151515</div>
  132. <div class="w3-third"><i class="fa fa-envelope w3-text-red"></i> Email: [email protected]</div>
  133. </div>
  134. <div class="w3-panel w3-red w3-leftbar w3-padding-32">
  135. <h6><i class="fa fa-info w3-deep-orange w3-padding w3-margin-right"></i> On demand, we can offer playstation, babycall, children care, dog equipment, etc.</h6>
  136. </div>
  137. <div class="w3-container">
  138. <h3>Our Hotels</h3>
  139. <h6>You can find our hotels anywhere in the world:</h6>
  140. </div>
  141. <div class="w3-row-padding w3-padding-16 w3-text-white w3-large">
  142. <div class="w3-half w3-margin-bottom">
  143. <div class="w3-display-container">
  144. <img src="https://www.w3schools.com//w3images/cinqueterre.jpg" alt="Cinque Terre" style="width:100%">
  145. <span class="w3-display-bottomleft w3-padding">Cinque Terre</span>
  146. </div>
  147. </div>
  148. <div class="w3-half">
  149. <div class="w3-row-padding" style="margin:0 -16px">
  150. <div class="w3-half w3-margin-bottom">
  151. <div class="w3-display-container">
  152. <img src="https://www.w3schools.com//w3images/newyork2.jpg" alt="New York" style="width:100%">
  153. <span class="w3-display-bottomleft w3-padding">New York</span>
  154. </div>
  155. </div>
  156. <div class="w3-half w3-margin-bottom">
  157. <div class="w3-display-container">
  158. <img src="https://www.w3schools.com//w3images/sanfran.jpg" alt="San Francisco" style="width:100%">
  159. <span class="w3-display-bottomleft w3-padding">San Francisco</span>
  160. </div>
  161. </div>
  162. </div>
  163. <div class="w3-row-padding" style="margin:0 -16px">
  164. <div class="w3-half w3-margin-bottom">
  165. <div class="w3-display-container">
  166. <img src="https://www.w3schools.com//w3images/pisa.jpg" alt="Pisa" style="width:100%">
  167. <span class="w3-display-bottomleft w3-padding">Pisa</span>
  168. </div>
  169. </div>
  170. <div class="w3-half w3-margin-bottom">
  171. <div class="w3-display-container">
  172. <img src="https://www.w3schools.com//w3images/paris.jpg" alt="Paris" style="width:100%">
  173. <span class="w3-display-bottomleft w3-padding">Paris</span>
  174. </div>
  175. </div>
  176. </div>
  177. </div>
  178. </div>
  179. <div class="w3-container w3-padding-32 w3-black w3-opacity w3-card w3-hover-opacity-off" style="margin:32px 0;">
  180. <h2>Get the best offers first!</h2>
  181. <p>Join our newsletter.</p>
  182. <label>E-mail</label>
  183. <input class="w3-input w3-border" type="text" placeholder="Your Email address">
  184. <button type="button" class="w3-button w3-red w3-margin-top">Subscribe</button>
  185. </div>
  186. <div class="w3-container" id="contact">
  187. <h2>Contact</h2>
  188. <p>If you have any questions, do not hesitate to ask them.</p>
  189. <i class="fa fa-map-marker w3-text-red" style="width:30px"></i> Chicago, US<br>
  190. <i class="fa fa-phone w3-text-red" style="width:30px"></i> Phone: +00 151515<br>
  191. <i class="fa fa-envelope w3-text-red" style="width:30px"> </i> Email: [email protected]<br>
  192. <form action="/action_page.php" target="_blank">
  193. <p><input class="w3-input w3-padding-16 w3-border" type="text" placeholder="Name" required name="Name"></p>
  194. <p><input class="w3-input w3-padding-16 w3-border" type="text" placeholder="Email" required name="Email"></p>
  195. <p><input class="w3-input w3-padding-16 w3-border" type="text" placeholder="Message" required name="Message"></p>
  196. <p><button class="w3-button w3-black w3-padding-large" type="submit">SEND MESSAGE</button></p>
  197. </form>
  198. </div>
  199. <!-- End page content -->
  200. </div>
  201. <!-- Footer -->
  202. <footer class="w3-padding-32 w3-black w3-center w3-margin-top">
  203. <h5>Find Us On</h5>
  204. <div class="w3-xlarge w3-padding-16">
  205. <i class="fa fa-facebook-official w3-hover-opacity"></i>
  206. <i class="fa fa-instagram w3-hover-opacity"></i>
  207. <i class="fa fa-snapchat w3-hover-opacity"></i>
  208. <i class="fa fa-pinterest-p w3-hover-opacity"></i>
  209. <i class="fa fa-twitter w3-hover-opacity"></i>
  210. <i class="fa fa-linkedin w3-hover-opacity"></i>
  211. </div>
  212. <p>Powered by <a href="https://www.w3schools.com/w3css/default.asp" target="_blank" class="w3-hover-text-green">w3.css</a></p>
  213. </footer>
  214. <!-- Add Google Maps -->
  215. <script>
  216. function myMap() {
  217. myCenter=new google.maps.LatLng(41.878114, -87.629798);
  218. var mapOptions= {
  219. center:myCenter,
  220. zoom:12, scrollwheel: false, draggable: false,
  221. mapTypeId:google.maps.MapTypeId.ROADMAP
  222. };
  223. var map=new google.maps.Map(document.getElementById("googleMap"),mapOptions);
  224. var marker = new google.maps.Marker({
  225. position: myCenter,
  226. });
  227. marker.setMap(map);
  228. }
  229. </script>
  230. <script src="https://www.w3schools.com/https://maps.googleapis.com/maps/api/js?key=AIzaSyBu-916DdpKAjTmJNIgngS6HL_kDIKU0aU&callback=myMap"></script>
  231. <!--
  232. To use this code on your website, get a free API key from Google.
  233. Read more at: https://www.w3schools.com/graphics/google_maps_basic.asp
  234. -->
  235. </body>
  236. </html>



Try Your Self ->



Published:
July 18, 2020
Author:
admin
Category:
CSS Responsive, CSS Source Code
Views:
17

This article was posted in CSS Responsive, CSS Source Code and tagged , , . Bookmark the permalink. Follow comments with the RSS feed for this post.Post a Comment or leave a trackback: Trackback URL.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Horje © 2011 - 2022