cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <!-- Create your header and give it the class of 'header' -->
<div class="header">
  <h1>H1 Header</h1>
</div>

<!-- LEFT ROW -->
<div class="row">
  <div class="col-3 menu">
  <ul>
    <li>list item 1</li>
    <li>list item 2</li>
    <li>list item 3</li>
    <li>list item 4</li>
  </ul>
</div>

<!-- PAGE BODY -->
<div class="col-6">
  <h1>Page Body</h1>
  <p>The body of our page goes here. Dont forget to scale the window down to see our page elements reposition.</p>
</div>

<!-- RIGHT SIDE-BAR -->
<div class="col-3">
  <div class="side-bar">
    <h2>Side-bar #1</h2>
    <p class="side-bar-text">This is our sidebar</p>
    <h2>Side-bar #2</h2>
    <p class="side-bar-text">This is our sidebar</p>
    <h2>Side-bar #3</h2>
    <p class="side-bar-text">This is our sidebar</p>
  </div>
</div>
</div>

<!-- PAGE FOOTER -->
<div class="footer">
  <p>This is our footer.</p>
</div>
            
          
!
            
              @media only screen and (max-width: 767px) {
   .heading {
      font-size: calc(0.70em + 3vmin);
   }
   .description {
      font-size: calc(.80em + 1.5vmin);
   }
}
@media only screen and (max-width: 415px) {
   .heading {
      font-size: calc(0.70em + 1.2vmin);
   }
   .description {
      font-size: calc(.60em + 1vmin);
   }
}
.modular-scale{
  line-height:.2;
}

/* --------------------------------------- */
* {
    box-sizing: border-box;
}
.row::after {
    content: "";
    clear: both;
    display: block;
}
[class*="col-"] {
    float: left;
    padding: 10px;
}
html {
    font-family: "raleway", sans-serif;
}
.header {
    background-color: blue;
    color: #ffffff;
    padding: 20px;
    text-indent:25px;
    text-align:center;
}
.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.menu li {
    padding: 15px;
    margin-bottom: 7px;
    background-color: blue;
    color: #ffffff;
    text-indent:20px;
}
.menu li:hover {
    background-color: darkblue;
}
.side-bar {
    background-color: blue;
    padding: 15px;
    color: #ffffff;
    text-align: center;
    font-size: 14px;
}
.side-bar h2{
  font-size:22px;
  font-weight:400;
}
.side-bar-text{
  margin-top:-18px;
  padding-bottom:10px;
}
.footer {
    background-color: blue;
    color: #ffffff;
    text-align: center;
    font-size: 12px;
    padding: 10px;
}
/* Column widths that will scale on mobile: */
.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}

@media only screen and (max-width: 768px) {
    /* For mobile phones: */
    [class*="col-"] {
        width: 100%;
    }
}
            
          
!
999px
Loading ..................

Console