Horje Website
CSS Responsive Web Design – Templates – Start Page Template – CSS Code

CSS Responsive Web Design – Templates – Start Page Template

CSS Responsive Web Design - Templates - Start Page Template - CSS Code


 
  1. <!DOCTYPE html>
  2. <html lang="en">
  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=Lato">
  8. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat">
  9. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  10. <style>
  11. body,h1,h2,h3,h4,h5,h6 {font-family: "Lato", sans-serif}
  12. .w3-bar,h1,button {font-family: "Montserrat", sans-serif}
  13. .fa-anchor,.fa-coffee {font-size:200px}
  14. </style>
  15. <body>
  16. <!-- Navbar -->
  17. <div class="w3-top">
  18. <div class="w3-bar w3-red w3-card w3-left-align w3-large">
  19. <a class="w3-bar-item w3-button w3-hide-medium w3-hide-large w3-right w3-padding-large w3-hover-white w3-large w3-red" href="javascript:void(0);" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
  20. <a href="#" class="w3-bar-item w3-button w3-padding-large w3-white">Home</a>
  21. <a href="#" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white">Link 1</a>
  22. <a href="#" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white">Link 2</a>
  23. <a href="#" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white">Link 3</a>
  24. <a href="#" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white">Link 4</a>
  25. </div>
  26. <!-- Navbar on small screens -->
  27. <div id="navDemo" class="w3-bar-block w3-white w3-hide w3-hide-large w3-hide-medium w3-large">
  28. <a href="#" class="w3-bar-item w3-button w3-padding-large">Link 1</a>
  29. <a href="#" class="w3-bar-item w3-button w3-padding-large">Link 2</a>
  30. <a href="#" class="w3-bar-item w3-button w3-padding-large">Link 3</a>
  31. <a href="#" class="w3-bar-item w3-button w3-padding-large">Link 4</a>
  32. </div>
  33. </div>
  34. <!-- Header -->
  35. <header class="w3-container w3-red w3-center" style="padding:128px 16px">
  36. <h1 class="w3-margin w3-jumbo">START PAGE</h1>
  37. <p class="w3-xlarge">Template by w3.css</p>
  38. <button class="w3-button w3-black w3-padding-large w3-large w3-margin-top">Get Started</button>
  39. </header>
  40. <!-- First Grid -->
  41. <div class="w3-row-padding w3-padding-64 w3-container">
  42. <div class="w3-content">
  43. <div class="w3-twothird">
  44. <h1>Lorem Ipsum</h1>
  45. <h5 class="w3-padding-32">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.</h5>
  46. <p class="w3-text-grey">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. Excepteur sint
  47. 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, quis nostrud exercitation ullamco
  48. laboris nisi ut aliquip ex ea commodo consequat.</p>
  49. </div>
  50. <div class="w3-third w3-center">
  51. <i class="fa fa-anchor w3-padding-64 w3-text-red"></i>
  52. </div>
  53. </div>
  54. </div>
  55. <!-- Second Grid -->
  56. <div class="w3-row-padding w3-light-grey w3-padding-64 w3-container">
  57. <div class="w3-content">
  58. <div class="w3-third w3-center">
  59. <i class="fa fa-coffee w3-padding-64 w3-text-red w3-margin-right"></i>
  60. </div>
  61. <div class="w3-twothird">
  62. <h1>Lorem Ipsum</h1>
  63. <h5 class="w3-padding-32">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.</h5>
  64. <p class="w3-text-grey">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. Excepteur sint
  65. 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, quis nostrud exercitation ullamco
  66. laboris nisi ut aliquip ex ea commodo consequat.</p>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="w3-container w3-black w3-center w3-opacity w3-padding-64">
  71. <h1 class="w3-margin w3-xlarge">Quote of the day: live life</h1>
  72. </div>
  73. <!-- Footer -->
  74. <footer class="w3-container w3-padding-64 w3-center w3-opacity">
  75. <div class="w3-xlarge w3-padding-32">
  76. <i class="fa fa-facebook-official w3-hover-opacity"></i>
  77. <i class="fa fa-instagram w3-hover-opacity"></i>
  78. <i class="fa fa-snapchat w3-hover-opacity"></i>
  79. <i class="fa fa-pinterest-p w3-hover-opacity"></i>
  80. <i class="fa fa-twitter w3-hover-opacity"></i>
  81. <i class="fa fa-linkedin w3-hover-opacity"></i>
  82. </div>
  83. <p>Powered by <a href="https://www.w3schools.com/w3css/default.asp" target="_blank">w3.css</a></p>
  84. </footer>
  85. <script>
  86. // Used to toggle the menu on small screens when clicking on the menu button
  87. function myFunction() {
  88. var x = document.getElementById("navDemo");
  89. if (x.className.indexOf("w3-show") == -1) {
  90. x.className += " w3-show";
  91. } else {
  92. x.className = x.className.replace(" w3-show", "");
  93. }
  94. }
  95. </script>
  96. </body>
  97. </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 - 2023