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="comment">
  <div class="avatar">
    <img src="https://avatars2.githubusercontent.com/u/1038697?v=3&s=460" alt="avatar" />
  </div>
  <div class="content">
    <p>Phasellus interdum faucibus quam, sed tempor libero interdum nec. Donec in aliquam leo. Suspendisse iaculis mattis dui sed condimentum. Maecenas faucibus dictum felis sed eleifend. Proin urna tortor, maximus quis lobortis in, luctus a lacus. Suspendisse potenti. Praesent sit amet augue et quam ultrices malesuada in efficitur felis. Donec maximus, massa malesuada pulvinar blandit, ipsum nulla aliquam lacus, eget cursus arcu orci sed urna. Nullam maximus porta sodales. Nunc ac ullamcorper dui.</p>
  </div>
</div>
<div class="comment dark">
  <div class="avatar">
    <img src="https://avatars2.githubusercontent.com/u/1038697?v=3&s=460" alt="avatar" />
  </div>
  <div class="content">
    <p>Phasellus interdum faucibus quam, sed tempor libero interdum nec. Donec in aliquam leo. Suspendisse iaculis mattis dui sed condimentum. Maecenas faucibus dictum felis sed eleifend. Proin urna tortor, maximus quis lobortis in, luctus a lacus. Suspendisse potenti. Praesent sit amet augue et quam ultrices malesuada in efficitur felis. Donec maximus, massa malesuada pulvinar blandit, ipsum nulla aliquam lacus, eget cursus arcu orci sed urna. Nullam maximus porta sodales. Nunc ac ullamcorper dui.</p>
  </div>
</div>
            
          
!
            
              body { background: #ccc;}

.comment {
  width: 700px;
  height: 177px;
  margin: 0 auto;
  background: #fff;
  margin-bottom: 10px;
  padding: 5px;
}

.avatar { 
  width: 150px; 
  height: 150px;  
  float: left;
  margin: 10px;
}

.avatar img { 
  width: 150px; 
  height: 150px;  
  -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    -khtml-border-radius: 50%;
}

.content {
  width: 70%;
  float: right;
  margin: 10px;
}

.comment.dark { background: #e3e3e3}

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

Console