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="menu">MENU</div>
<div class="contenu">
  <img src="http://iamvdo.me/conf/2013/kiwiparty/vdo/imgs/kiwis.jpg" alt="">
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Temporibus, ipsas.</p>
  <h2>Les Kiwis? Partis!</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni, dolorum, alias, officia consequuntur delectus omnis dolorem ratione animi maiores accusantium ut harum blanditiis debitis quasi adipisci quod porro maxime corrupti.</p>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sequi, delectus, eum, commodi blanditiis illo maxime fuga incidunt consequuntur vel nemo inventore quisquam architecto temporibus nobis deserunt totam perspiciatis quo natus? Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veritatis rerum deserunt perferendis. Molestias, laudantium, doloremque voluptates dolores sequi hic facilis nobis sint eligendi ipsa architecto deleniti. Aperiam, soluta accusantium voluptas.</p>
</div>
            
          
!
            
              img{
  float: left;
}
h2{
  /* Empeche d'etre adjacent aux floats */
  clear: left;
}
.contenu{
  /* Cree un BFC */
  overflow: hidden;
}


/*Sans intérêt pour la compréhension*/
body{
  width: 550px;
  margin: auto;
  padding-top: 30px;
}
.menu{
  float: left;
  width: 150px; height: 200px;
  background: deepskyblue;
}
.contenu{
  width: 390px;
  background: tomato;
  padding: 5px;
  margin-left: 150px;
}
.contenu img{
  float: left;
  width: 150px;
  margin: 0 15px 15px 0;
}
.contenu h2{
  padding: .2em;
}

            
          
!
999px
Loading ..................

Console