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

CSS Responsive Web Design – Travel Template

CSS Responsive Web Design - Travel 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. .myLink {display: none}
  12. </style>
  13. <body class="w3-light-grey">
  14. <!-- Navigation Bar -->
  15. <div class="w3-bar w3-white w3-border-bottom w3-xlarge">
  16. <a href="#" class="w3-bar-item w3-button w3-text-red w3-hover-red"><b><i class="fa fa-map-marker w3-margin-right"></i>Logo</b></a>
  17. <a href="#" class="w3-bar-item w3-button w3-right w3-hover-red w3-text-grey"><i class="fa fa-search"></i></a>
  18. </div>
  19. <!-- Header -->
  20. <header class="w3-display-container w3-content w3-hide-small" style="max-width:1500px">
  21. <img class="w3-image" src="https://www.w3schools.com//w3images/london2.jpg" alt="London" width="1500" height="700">
  22. <div class="w3-display-middle" style="width:65%">
  23. <div class="w3-bar w3-black">
  24. <button class="w3-bar-item w3-button tablink" onclick="openLink(event, 'Flight');"><i class="fa fa-plane w3-margin-right"></i>Flight</button>
  25. <button class="w3-bar-item w3-button tablink" onclick="openLink(event, 'Hotel');"><i class="fa fa-bed w3-margin-right"></i>Hotel</button>
  26. <button class="w3-bar-item w3-button tablink" onclick="openLink(event, 'Car');"><i class="fa fa-car w3-margin-right"></i>Rental</button>
  27. </div>
  28. <!-- Tabs -->
  29. <div id="Flight" class="w3-container w3-white w3-padding-16 myLink">
  30. <h3>Travel the world with us</h3>
  31. <div class="w3-row-padding" style="margin:0 -16px;">
  32. <div class="w3-half">
  33. <label>From</label>
  34. <input class="w3-input w3-border" type="text" placeholder="Departing from">
  35. </div>
  36. <div class="w3-half">
  37. <label>To</label>
  38. <input class="w3-input w3-border" type="text" placeholder="Arriving at">
  39. </div>
  40. </div>
  41. <p><button class="w3-button w3-dark-grey">Search and find dates</button></p>
  42. </div>
  43. <div id="Hotel" class="w3-container w3-white w3-padding-16 myLink">
  44. <h3>Find the best hotels</h3>
  45. <p>Book a hotel with us and get the best fares and promotions.</p>
  46. <p>We know hotels - we know comfort.</p>
  47. <p><button class="w3-button w3-dark-grey">Search Hotels</button></p>
  48. </div>
  49. <div id="Car" class="w3-container w3-white w3-padding-16 myLink">
  50. <h3>Best car rental in the world!</h3>
  51. <p><span class="w3-tag w3-deep-orange">DISCOUNT!</span> Special offer if you book today: 25% off anywhere in the world with CarServiceRentalRUs</p>
  52. <input class="w3-input w3-border" type="text" placeholder="Pick-up point">
  53. <p><button class="w3-button w3-dark-grey">Search Availability</button></p>
  54. </div>
  55. </div>
  56. </header>
  57. <!-- Page content -->
  58. <div class="w3-content" style="max-width:1100px;">
  59. <!-- Good offers -->
  60. <div class="w3-container w3-margin-top">
  61. <h3>Good Offers Right Now</h3>
  62. <h6>Up to <strong>50%</strong> discount.</h6>
  63. </div>
  64. <div class="w3-row-padding w3-text-white w3-large">
  65. <div class="w3-half w3-margin-bottom">
  66. <div class="w3-display-container">
  67. <img src="https://www.w3schools.com//w3images/cinqueterre.jpg" alt="Cinque Terre" style="width:100%">
  68. <span class="w3-display-bottomleft w3-padding">Cinque Terre</span>
  69. </div>
  70. </div>
  71. <div class="w3-half">
  72. <div class="w3-row-padding" style="margin:0 -16px">
  73. <div class="w3-half w3-margin-bottom">
  74. <div class="w3-display-container">
  75. <img src="https://www.w3schools.com//w3images/newyork2.jpg" alt="New York" style="width:100%">
  76. <span class="w3-display-bottomleft w3-padding">New York</span>
  77. </div>
  78. </div>
  79. <div class="w3-half w3-margin-bottom">
  80. <div class="w3-display-container">
  81. <img src="https://www.w3schools.com//w3images/sanfran.jpg" alt="San Francisco" style="width:100%">
  82. <span class="w3-display-bottomleft w3-padding">San Francisco</span>
  83. </div>
  84. </div>
  85. </div>
  86. <div class="w3-row-padding" style="margin:0 -16px">
  87. <div class="w3-half w3-margin-bottom">
  88. <div class="w3-display-container">
  89. <img src="https://www.w3schools.com//w3images/pisa.jpg" alt="Pisa" style="width:100%">
  90. <span class="w3-display-bottomleft w3-padding">Pisa</span>
  91. </div>
  92. </div>
  93. <div class="w3-half w3-margin-bottom">
  94. <div class="w3-display-container">
  95. <img src="https://www.w3schools.com//w3images/paris.jpg" alt="Paris" style="width:100%">
  96. <span class="w3-display-bottomleft w3-padding">Paris</span>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <!-- Explore Nature -->
  103. <div class="w3-container">
  104. <h3>Explore Nature</h3>
  105. <p>Travel with us and see nature at its finest.</p>
  106. </div>
  107. <div class="w3-row-padding">
  108. <div class="w3-half w3-margin-bottom">
  109. <img src="https://www.w3schools.com//w3images/ocean2.jpg" alt="Norway" style="width:100%">
  110. <div class="w3-container w3-white">
  111. <h3>West Coast, Norway</h3>
  112. <p class="w3-opacity">Roundtrip from $79</p>
  113. <p>Praesent tincidunt sed tellus ut rutrum sed vitae justo.</p>
  114. <button class="w3-button w3-margin-bottom">Buy Tickets</button>
  115. </div>
  116. </div>
  117. <div class="w3-half w3-margin-bottom">
  118. <img src="https://www.w3schools.com//w3images/mountains2.jpg" alt="Austria" style="width:100%">
  119. <div class="w3-container w3-white">
  120. <h3>Mountains, Austria</h3>
  121. <p class="w3-opacity">One-way from $39</p>
  122. <p>Praesent tincidunt sed tellus ut rutrum sed vitae justo.</p>
  123. <button class="w3-button w3-margin-bottom">Buy Tickets</button>
  124. </div>
  125. </div>
  126. </div>
  127. <!-- Newsletter -->
  128. <div class="w3-container">
  129. <div class="w3-panel w3-padding-16 w3-black w3-opacity w3-card w3-hover-opacity-off">
  130. <h2>Get the best offers first!</h2>
  131. <p>Join our newsletter.</p>
  132. <label>E-mail</label>
  133. <input class="w3-input w3-border" type="text" placeholder="Your Email address">
  134. <button type="button" class="w3-button w3-red w3-margin-top">Subscribe</button>
  135. </div>
  136. </div>
  137. <!-- Contact -->
  138. <div class="w3-container">
  139. <h2>Contact</h2>
  140. <p>Let us book your next trip!</p>
  141. <i class="fa fa-map-marker" style="width:30px"></i> Chicago, US<br>
  142. <i class="fa fa-phone" style="width:30px"></i> Phone: +00 151515<br>
  143. <i class="fa fa-envelope" style="width:30px"> </i> Email: [email protected]<br>
  144. <form action="/action_page.php" target="_blank">
  145. <p><input class="w3-input w3-padding-16 w3-border" type="text" placeholder="Name" required name="Name"></p>
  146. <p><input class="w3-input w3-padding-16 w3-border" type="text" placeholder="Email" required name="Email"></p>
  147. <p><input class="w3-input w3-padding-16 w3-border" type="text" placeholder="Message" required name="Message"></p>
  148. <p><button class="w3-button w3-black w3-padding-large" type="submit">SEND MESSAGE</button></p>
  149. </form>
  150. </div>
  151. <!-- End page content -->
  152. </div>
  153. <!-- Footer -->
  154. <footer class="w3-container w3-center w3-opacity w3-margin-bottom">
  155. <h5>Find Us On</h5>
  156. <div class="w3-xlarge w3-padding-16">
  157. <i class="fa fa-facebook-official w3-hover-opacity"></i>
  158. <i class="fa fa-instagram w3-hover-opacity"></i>
  159. <i class="fa fa-snapchat w3-hover-opacity"></i>
  160. <i class="fa fa-pinterest-p w3-hover-opacity"></i>
  161. <i class="fa fa-twitter w3-hover-opacity"></i>
  162. <i class="fa fa-linkedin w3-hover-opacity"></i>
  163. </div>
  164. <p>Powered by <a href="https://www.w3schools.com/w3css/default.asp" target="_blank" class="w3-hover-text-green">w3.css</a></p>
  165. </footer>
  166. <script>
  167. // Tabs
  168. function openLink(evt, linkName) {
  169. var i, x, tablinks;
  170. x = document.getElementsByClassName("myLink");
  171. for (i = 0; i < x.length; i++) {
  172. x[i].style.display = "none";
  173. }
  174. tablinks = document.getElementsByClassName("tablink");
  175. for (i = 0; i < x.length; i++) {
  176. tablinks[i].className = tablinks[i].className.replace(" w3-red", "");
  177. }
  178. document.getElementById(linkName).style.display = "block";
  179. evt.currentTarget.className += " w3-red";
  180. }
  181. // Click on the first tablink on load
  182. document.getElementsByClassName("tablink")[0].click();
  183. </script>
  184. </body>
  185. </html>



Try Your Self ->



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

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