title: Multiple pages in one html document
body: <p>So I have five different coded pages. What I want to do is combine them all into one html page. I have my home page with a navigation bar that links to the other pages but whenever I try to insert my other pages, the multiple pages overlay one another or appear in a column underneath. What sort of code do I need so the clickable links pull up my other pages without it overlaying. Below is a section of my code that I want linked to another page.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>    }
  
  .container {
    position: relative;
    width: 50%;
    float: left;
  }
  
  .image1 {
    display: inline-block;
    width: 400px;
    height: 290px;
    margin-top: -10px;
    margin-right: 400px;
    background-position: 10px 280px;
  }
  
  .overlay {
    position: absolute;
    top: -10px;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 400px;
    transition: .5s ease;
    background-color: rgba(0, 0, 0, 0);
    z-index: -3.0;
  }
  
  .container:hover .overlay {
    background-color: rgba(0, 0, 0, .7);
    height: 290px;
    width: 400px;
  }
  
  .container:hover .text {
    opacity: 1;
  }
  
  .text {
    font-size: 50px;
    position: relative;
    width: 330px;
    height: 240px;
    overflow: scroll;
    top: 15%;
    left: 48%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    opacity: 0;
    text-align: center;
    margin-top: 100px;
    display:block;
    width:150px;
    height: 70px;
    border:2px solid #C5E3ED;
    color:#ADD7C9;
    text-align:center;
    text-decoration:none;
  }
  
  a { text-decoration: none; color:#C5E3ED }
  a:visited { text-decoration: none; color:#C5E3ED; }
  a:hover { text-decoration: none; color:#C5E3ED; }
  a:focus { text-decoration: none; color:#C5E3ED; }
  a:hover, a:active { text-decoration: none; color:#C5E3ED }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;img src="https://www.pets4homes.co.uk/images/articles/3779/large/how-to-care-for-a-dog-with-a-stomach-upset-58345cd2daf98.jpg" alt="dog" class="image1"&gt;
    &lt;div class="overlay"&gt;
      &lt;div class="text"&gt;
      &lt;a href="http://google.com"&gt;About&lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>