Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. **HTML**
  2.  
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>Church of Christ</title>
  7. <link rel="stylesheet" type="text/css" href="main.css">
  8. <meta charset="utf-8">
  9. <meta name="viewport" contet="width=device-width, initial-scale=1.0">
  10. </head>
  11. <body>
  12. <h1> The Church of Christ </h1>
  13. <div class="nav">
  14. <label for="toggle">&#9776;</label>
  15. <input type="checkbox" id="toggle"/>
  16. <div class="menu">
  17. <a href="#">Home</a>
  18. <a href="#">Contact</a>
  19. <a href="#">About</a>
  20. <a href="#"><span>Members</span></a>
  21. </div>
  22. </div>
  23. <h2> location </h2>
  24. <img src="IMG_2597.jpg" alt="Church of Christ">
  25. </body>
  26. </html>
  27.  
  28. **CSS**
  29.  
  30.  
  31. html, body {width: 100%;
  32. height: 100%;
  33. margin: 0;
  34. }
  35. html {
  36. font-family: "helvetica neue", "sans sherif";
  37. }
  38.  
  39. .nav {
  40. border-bottom: 1px solid gold;
  41. text-align: right;
  42. height: 70px;
  43. line-height: 70px;
  44. }
  45.  
  46. .menu {
  47. margin: 0 30px 0 0;
  48. }
  49.  
  50. .menu a {
  51. text-decoration: none;
  52. color: rgb(255, 255, 255);
  53. margin: 0 10px;
  54. line-height: 70px;
  55. clear: right;
  56. }
  57.  
  58. span {
  59. color: gold;
  60. }
  61.  
  62. label {
  63. margin: 0 40px 0 0;
  64. font-size: 26px;
  65. line-height: 70px;
  66. display: none;
  67. width: 26px;
  68. float: right;
  69. color: gold;
  70. }
  71.  
  72. #toggle {
  73. display: none;
  74. }
  75.  
  76. @media only screen and (max-width: 500px) {
  77. label {
  78. display: block;
  79. cursor: pointer;
  80. }
  81. .menu {
  82. text-align: center;
  83. width: 100%;
  84. display: none;
  85. }
  86. .menu a {
  87. display: block;
  88. border-bottom: 1px solid gold;
  89. margin: 0;
  90. }
  91. #toggle:checked + .menu {
  92. display: block;
  93. }
  94. }
  95.  
  96. h1 {
  97. text-align: center;
  98. font-size: 50px;
  99. margin: 10px 0px -10px 0px;
  100. color: gold;
  101. }
  102.  
  103. a {
  104. font-size: 25px;
  105. }
  106.  
  107. h2 {
  108. text-align: center;
  109. font-size: 45px;
  110. color: rgb(255, 255, 255);
  111. }
  112.  
  113. img {
  114. width: 100%;
  115. height: auto;
  116. }
  117.  
  118. body {
  119. background-color: rgb(0, 0, 0);
  120. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement