Advertisement
Guest User

Untitled

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