anasazhar

navigasi

Nov 12th, 2020
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>My WEB</title>
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8">
  6. <link href="https://fonts.googleapis.com/css2?family=Grenze+Gotisch:wght@700&display=swap" rel="stylesheet">
  7. <style type="text/css">
  8. * {
  9. margin: 0;
  10. padding: 0;
  11. }
  12.  
  13. body {
  14. font-family: sans-serif;
  15. }
  16.  
  17. nav {
  18. display: flex;
  19. justify-content: space-around; /*space-between*/
  20. background-color: purple;
  21. padding: 5px;
  22. height: 35px;
  23. align-items: center;
  24. }
  25.  
  26. nav .web-title h3 {
  27. font-family: 'Grenze Gotisch', cursive;
  28. letter-spacing: 3px;
  29. color: white;
  30. }
  31.  
  32. nav .web-menu ul {
  33. display: flex;
  34. /*padding: 5px;*/
  35. }
  36.  
  37. nav .web-menu ul li {
  38. list-style: none;
  39. padding: 5px;
  40. }
  41.  
  42. nav .web-menu ul li a {
  43. color: white;
  44. text-decoration: none;
  45. }
  46.  
  47. nav .web-menu ul li button {
  48. background-color: blue;
  49. }
  50.  
  51. nav .web-menu ul li button:hover {
  52. background-color: orange;
  53. }
  54.  
  55. /* RESPONSIVE CONFIG */
  56.  
  57.  
  58. /* Mobile Phone */
  59. @media screen and (max-width: 800px) {
  60.  
  61. nav .web-menu ul {
  62. display: none;
  63. }
  64. }
  65.  
  66. /*MAIN TITLE WEB*/
  67. .container-carousel {
  68. display: grid;
  69. padding: 20px;
  70. grid-template-columns: 80% 20%;
  71. }
  72.  
  73. .container-left-item {
  74. background-color: purple;
  75. padding: 20%;
  76. height: 100px;
  77. }
  78.  
  79. .container-right-item {
  80. background-color: white;
  81. padding: 20%;
  82. height: 100px;
  83. }
  84.  
  85. </style>
  86. </head>
  87. <body>
  88. <nav>
  89. <div class="web-title">
  90. <h3>Ignatius Global School</h3>
  91. </div>
  92. <div class="web-menu">
  93. <ul>
  94. <li><a href="#">Home</a></li>
  95. <li><a href="#">Our School</a></li>
  96. <li><a href="#">Events</a></li>
  97. <li><a href="#">Online Learning</a></li>
  98. <!--<li><button>Login</button></li>-->
  99. </ul>
  100. </div>
  101. </nav>
  102.  
  103. <section>
  104. <div class="container-carousel">
  105. <div class="container-left-item">
  106.  
  107. </div>
  108. <div class="container-right-item">
  109.  
  110. </div>
  111. </div>
  112. </section>
  113.  
  114. <footer>
  115.  
  116. </footer>
  117. </body>
  118. </html>
Advertisement
Add Comment
Please, Sign In to add comment