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.

            
              <div class="wrapper">
  <div class="article">
    <h1>This is now the first set of content</h1>
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/640px-A_Brouhot_car_in_Paris%2C_1910.jpg" width="692px" height="432px" alt="test image" />
    <p> Nullam bibendum hendrerit augue, sed tempus odio sagittis nec. Ut ipsum lorem, scelerisque ac vestibulum et, tincidunt eget urna. Phasellus pellentesque nec urna id elementum. Maecenas a urna metus. Vivamus ac euismod ante. Vivamus ut risus porttitor, porttitor ligula a, maximus risus. Donec maximus vulputate mauris, vel placerat diam interdum eu. Nam tempus diam eget blandit efficitur. Etiam sed porta nisi. Donec sit amet sapien in est pellentesque sollicitudin. Donec nec erat efficitur, efficitur purus vel, vehicula odio. Fusce eget placerat massa, vel porta lacus. Proin consectetur finibus lacinia. </p>
  </div>
  <div class="sidebar">
    <h2>This is my sidebar headline</h2>
    <p>Lorem ipsum dolor sit amet consectetur adipiscing, elit inceptos nunc et litora, cras class id morbi viverra. Leo in hac vel sed molestie fringilla fusce orci, dis nibh pharetra quisque inceptos interdum tortor, porta parturient varius magna curae feugiat vestibulum egestas, suscipit facilisi accumsan torquent aptent lobortis. Non dictum feugiat himenaeos consequat per odio ante porta eget senectus, ac accumsan ligula laoreet vivamus sociis mollis habitasse magna, felis massa dis id malesuada donec ut pulvinar iaculis.</p>
  </div>
</div>
            
          
!
            
              h1, h2, p, img { border: solid 4px #c429c4;}
.article, .sidebar { border: solid 4px #ffb53e;}
.wrapper { border: solid 4px #20a0ca;
  width: 960px;
  margin: 1em auto;
  font-family: Arial;
}
.article {
  float: left;
  width: 700px;
}
.sidebar {
  float: right;
  width: 220px;
  font-size: 80%;
}
h1, h2 {
  margin-top: 0;
}


/* -- clearfix hack, cheating because it wasn't used in the era of fixed-width designs, that was before it's time, but I need it to be able to put the blue border on the wrapper div -- */
/* cleafix hack */
.wrapper:before,
.wrapper:after {
  content: ".";    
  display: block;    
  height: 0;    
  overflow: hidden;	
}
.wrapper:after {clear: both;}
            
          
!
999px
Loading ..................

Console