Horje Website
CSS Responsive Web Design – Templates – Pizza Restaurant Template – CSS Code

CSS Responsive Web Design – Templates – Pizza Restaurant Template

CSS Responsive Web Design - Templates - Pizza Restaurant 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=Amatic+SC">
  8. <style>
  9. body, html {height: 100%}
  10. body,h1,h2,h3,h4,h5,h6 {font-family: "Amatic SC", sans-serif}
  11. .menu {display: none}
  12. .bgimg {
  13. background-repeat: no-repeat;
  14. background-size: cover;
  15. background-image: url("/w3images/pizza.jpg");
  16. min-height: 90%;
  17. }
  18. </style>
  19. <body>
  20. <!-- Navbar (sit on top) -->
  21. <div class="w3-top w3-hide-small">
  22. <div class="w3-bar w3-xlarge w3-black w3-opacity w3-hover-opacity-off" id="myNavbar">
  23. <a href="#" class="w3-bar-item w3-button">HOME</a>
  24. <a href="#menu" class="w3-bar-item w3-button">MENU</a>
  25. <a href="#about" class="w3-bar-item w3-button">ABOUT</a>
  26. <a href="#myMap" class="w3-bar-item w3-button">CONTACT</a>
  27. </div>
  28. </div>
  29. <!-- Header with image -->
  30. <header class="bgimg w3-display-container w3-grayscale-min" id="home">
  31. <div class="w3-display-bottomleft w3-padding">
  32. <span class="w3-tag w3-xlarge">Open from 10am to 12pm</span>
  33. </div>
  34. <div class="w3-display-middle w3-center">
  35. <span class="w3-text-white w3-hide-small" style="font-size:100px">thin<br>CRUST PIZZA</span>
  36. <span class="w3-text-white w3-hide-large w3-hide-medium" style="font-size:60px"><b>thin<br>CRUST PIZZA</b></span>
  37. <p><a href="#menu" class="w3-button w3-xxlarge w3-black">Let me see the menu</a></p>
  38. </div>
  39. </header>
  40. <!-- Menu Container -->
  41. <div class="w3-container w3-black w3-padding-64 w3-xxlarge" id="menu">
  42. <div class="w3-content">
  43. <h1 class="w3-center w3-jumbo" style="margin-bottom:64px">THE MENU</h1>
  44. <div class="w3-row w3-center w3-border w3-border-dark-grey">
  45. <a href="javascript:void(0)" onclick="openMenu(event, 'Pizza');" id="myLink">
  46. <div class="w3-col s4 tablink w3-padding-large w3-hover-red">Pizza</div>
  47. </a>
  48. <a href="javascript:void(0)" onclick="openMenu(event, 'Pasta');">
  49. <div class="w3-col s4 tablink w3-padding-large w3-hover-red">Salads</div>
  50. </a>
  51. <a href="javascript:void(0)" onclick="openMenu(event, 'Starter');">
  52. <div class="w3-col s4 tablink w3-padding-large w3-hover-red">Starter</div>
  53. </a>
  54. </div>
  55. <div id="Pizza" class="w3-container menu w3-padding-32 w3-white">
  56. <h1><b>Margherita</b> <span class="w3-right w3-tag w3-dark-grey w3-round">$12.50</span></h1>
  57. <p class="w3-text-grey">Fresh tomatoes, fresh mozzarella, fresh basil</p>
  58. <hr>
  59. <h1><b>Formaggio</b> <span class="w3-right w3-tag w3-dark-grey w3-round">$15.50</span></h1>
  60. <p class="w3-text-grey">Four cheeses (mozzarella, parmesan, pecorino, jarlsberg)</p>
  61. <hr>
  62. <h1><b>Chicken</b> <span class="w3-right w3-tag w3-dark-grey w3-round">$17.00</span></h1>
  63. <p class="w3-text-grey">Fresh tomatoes, mozzarella, chicken, onions</p>
  64. <hr>
  65. <h1><b>Pineapple'o'clock</b> <span class="w3-right w3-tag w3-dark-grey w3-round">$16.50</span></h1>
  66. <p class="w3-text-grey">Fresh tomatoes, mozzarella, fresh pineapple, bacon, fresh basil</p>
  67. <hr>
  68. <h1><b>Meat Town</b> <span class="w3-tag w3-red w3-round">Hot!</span><span class="w3-right w3-tag w3-dark-grey w3-round">$20.00</span></h1>
  69. <p class="w3-text-grey">Fresh tomatoes, mozzarella, hot pepporoni, hot sausage, beef, chicken</p>
  70. <hr>
  71. <h1><b>Parma</b> <span class="w3-tag w3-grey w3-round">New</span><span class="w3-right w3-tag w3-dark-grey w3-round">$21.50</span></h1>
  72. <p class="w3-text-grey">Fresh tomatoes, mozzarella, parma, bacon, fresh arugula</p>
  73. </div>
  74. <div id="Pasta" class="w3-container menu w3-padding-32 w3-white">
  75. <h1><b>Lasagna</b> <span class="w3-tag w3-grey w3-round">Popular</span> <span class="w3-right w3-tag w3-dark-grey w3-round">$13.50</span></h1>
  76. <p class="w3-text-grey">Special sauce, mozzarella, parmesan, ground beef</p>
  77. <hr>
  78. <h1><b>Ravioli</b> <span class="w3-right w3-tag w3-dark-grey w3-round">$14.50</span></h1>
  79. <p class="w3-text-grey">Ravioli filled with cheese</p>
  80. <hr>
  81. <h1><b>Spaghetti Classica</b> <span class="w3-right w3-tag w3-dark-grey w3-round">$11.00</span></h1>
  82. <p class="w3-text-grey">Fresh tomatoes, onions, ground beef</p>
  83. <hr>
  84. <h1><b>Seafood pasta</b> <span class="w3-right w3-tag w3-dark-grey w3-round">$25.50</span></h1>
  85. <p class="w3-text-grey">Salmon, shrimp, lobster, garlic</p>
  86. </div>
  87. <div id="Starter" class="w3-container menu w3-padding-32 w3-white">
  88. <h1><b>Today's Soup</b> <span class="w3-tag w3-grey w3-round">Seasonal</span><span class="w3-right w3-tag w3-dark-grey w3-round">$5.50</span></h1>
  89. <p class="w3-text-grey">Ask the waiter</p>
  90. <hr>
  91. <h1><b>Bruschetta</b> <span class="w3-right w3-tag w3-dark-grey w3-round">$8.50</span></h1>
  92. <p class="w3-text-grey">Bread with pesto, tomatoes, onion, garlic</p>
  93. <hr>
  94. <h1><b>Garlic bread</b> <span class="w3-right w3-tag w3-dark-grey w3-round">$9.50</span></h1>
  95. <p class="w3-text-grey">Grilled ciabatta, garlic butter, onions</p>
  96. <hr>
  97. <h1><b>Tomozzarella</b> <span class="w3-right w3-tag w3-dark-grey w3-round">$10.50</span></h1>
  98. <p class="w3-text-grey">Tomatoes and mozzarella</p>
  99. </div><br>
  100. </div>
  101. </div>
  102. <!-- About Container -->
  103. <div class="w3-container w3-padding-64 w3-red w3-grayscale w3-xlarge" id="about">
  104. <div class="w3-content">
  105. <h1 class="w3-center w3-jumbo" style="margin-bottom:64px">About</h1>
  106. <p>The Pizza Restaurant was founded in blabla by Mr. Italiano in 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.</p>
  107. <p><strong>The Chef?</strong> Mr. Italiano himself<img src="https://www.w3schools.com//w3images/chef.jpg" style="width:150px" class="w3-circle w3-right" alt="Chef"></p>
  108. <p>We are proud of our interiors.</p>
  109. <img src="https://www.w3schools.com//w3images/onepage_restaurant.jpg" style="width:100%" class="w3-margin-top w3-margin-bottom" alt="Restaurant">
  110. <h1><b>Opening Hours</b></h1>
  111. <div class="w3-row">
  112. <div class="w3-col s6">
  113. <p>Mon & Tue CLOSED</p>
  114. <p>Wednesday 10.00 - 24.00</p>
  115. <p>Thursday 10:00 - 24:00</p>
  116. </div>
  117. <div class="w3-col s6">
  118. <p>Friday 10:00 - 12:00</p>
  119. <p>Saturday 10:00 - 23:00</p>
  120. <p>Sunday Closed</p>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. <!-- Image of location/map -->
  126. <img src="https://www.w3schools.com//w3images/map.jpg" class="w3-image w3-greyscale" style="width:100%;" id="myMap">
  127. <!-- Contact -->
  128. <div class="w3-container w3-padding-64 w3-blue-grey w3-grayscale-min w3-xlarge">
  129. <div class="w3-content">
  130. <h1 class="w3-center w3-jumbo" style="margin-bottom:64px">Contact</h1>
  131. <p>Find us at some address at some place or call us at 05050515-122330</p>
  132. <p><span class="w3-tag">FYI!</span> We offer full-service catering for any event, large or small. We understand your needs and we will cater the food to satisfy the biggerst criteria of them all, both look and taste.</p>
  133. <p class="w3-xxlarge"><strong>Reserve</strong> a table, ask for today's special or just send us a message:</p>
  134. <form action="/action_page.php" target="_blank">
  135. <p><input class="w3-input w3-padding-16 w3-border" type="text" placeholder="Name" required name="Name"></p>
  136. <p><input class="w3-input w3-padding-16 w3-border" type="number" placeholder="How many people" required name="People"></p>
  137. <p><input class="w3-input w3-padding-16 w3-border" type="datetime-local" placeholder="Date and time" required name="date" value="2017-11-16T20:00"></p>
  138. <p><input class="w3-input w3-padding-16 w3-border" type="text" placeholder="Message \ Special requirements" required name="Message"></p>
  139. <p><button class="w3-button w3-light-grey w3-block" type="submit">SEND MESSAGE</button></p>
  140. </form>
  141. </div>
  142. </div>
  143. <!-- Footer -->
  144. <footer class="w3-center w3-black w3-padding-48 w3-xxlarge">
  145. <p>Powered by <a href="https://www.w3schools.com/w3css/default.asp" title="W3.CSS" target="_blank" class="w3-hover-text-green">w3.css</a></p>
  146. </footer>
  147. <script>
  148. // Tabbed Menu
  149. function openMenu(evt, menuName) {
  150. var i, x, tablinks;
  151. x = document.getElementsByClassName("menu");
  152. for (i = 0; i < x.length; i++) {
  153. x[i].style.display = "none";
  154. }
  155. tablinks = document.getElementsByClassName("tablink");
  156. for (i = 0; i < x.length; i++) {
  157. tablinks[i].className = tablinks[i].className.replace(" w3-red", "");
  158. }
  159. document.getElementById(menuName).style.display = "block";
  160. evt.currentTarget.firstElementChild.className += " w3-red";
  161. }
  162. document.getElementById("myLink").click();
  163. </script>
  164. </body>
  165. </html>



Try Your Self ->



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

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 - 2023