cssskeleton-css-boilerplate

Why does my column wrap to the next line in skeleton framework


I have two divs that supposed to be on one line. one div is 1/3 the width of the line and the second is 2/3rd width. what isnt the second bigger div floating up to be on the same line as the smaller one.

.home {
  border: 4px solid gray;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0), rgba(0, 0, 0, .3)), url('https://unsplash.it/1024/768');
  background-size: cover;
  background-repeat: none;
  background-position: center center;
}
.top {
  background: black;
}
.bottom {
  background: blue;
}
.left-nav {
  border: 1px solid gray;
}
.right-content {
  border: 1px dashed purple;
  height: 100px;
}
<!--Primary Page Layout
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<section class="home">
  <!--Middle Row-->
  <div class="row">

    <!--Top Row-->
    <div class="twelve columns top u-full-width">
      <h4 class="heading"><span class="demphasize">Teacher Application Submission for </span>Dwayne Neckles</h4>
    </div>

    <!--Navigation-->
    <div class="left-nav one-third column">
      <nav>
        <ul>
          <li><a href="index.html">Home</a>
          </li>
          <li><a href="biography.html">Biography</a>
          </li>
          <li><a href="community.html">Community</a>
          </li>
          <li><a href="leadership.html">Leadership</a>
          </li>
        </ul>
      </nav>
    </div>

    <div class="right-content two-thirds column">

    </div>
    <!--Footer Row-->
    <div class="twelve columns u-full-width">
      <h6 class="byline demphasize">Developed For</h6>
      <img src="https://unsplash.it/204/52" width="204" height="52" alt="logo">
    </div>
  </div>
</section>


Solution

  • You need to wrap rows in <div class="row">...</div>

    .home {
    border: 4px solid gray;   
    background-image: radial-gradient(
          circle,
          rgba(0,0,0,0),
          rgba(0,0,0,.3)
        ),url('https://unsplash.it/1024/768');
    background-size: cover;
    background-repeat: none;
    background-position: center center;
    
    }
    
    .top{
      background: black;
    }
    .bottom{
      background
    }
    .left-nav {
      border: 1px solid gray;
    }
    
    .right-content {
      border: 1px dashed purple;
      height: 100px;
    }
    <link href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/123941/skeleton.2.02.css" rel="stylesheet"/>
    <link href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.min.css" rel="stylesheet"/>
    <!--Primary Page Layout
    –––––––––––––––––––––––––––––––––––––––––––––––––– -->
    <section class="home">
      <!--Middle Row-->
      <div class="row">
    
        <!--Top Row-->
        <div class="twelve columns top u-full-width">
          <h4 class="heading"><span class="demphasize">Teacher Application Submission for </span>Dwayne Neckles</h4>
        </div>
    
       </div>
    
        <!--Navigation-->
        <div class="row">
        <div class="left-nav one-third column">
          <nav>
            <ul>
              <li><a href="index.html">Home</a></li>
              <li><a href="biography.html">Biography</a></li>
              <li><a href="community.html">Community</a></li>
              <li><a href="leadership.html">Leadership</a></li>
            </ul>
          </nav>
        </div>
    
        <div class="right-content two-thirds column">
    
        </div>
        </div>
        <!--Footer Row-->
        <div class="row">
        <div class="twelve columns u-full-width">
          <h6 class="byline demphasize">Developed For</h6><img src="https://unsplash.it/204/52" width="204" height="52" alt="logo">
        </div>
      </div>
    </section>