startv

FmGjp

A Pen By Captain Anonymous

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource
via CSS Lint

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource
via JS Hint

Code Indentation

     

Save Automatically?

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

Want a Run Button?

If active, the preview will update automatically when you change code.

HTML

            
              <div class="container">
  <div class="content">
    
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec congue varius tortor nec auctor. Vestibulum quis ligula ut turpis faucibus viverra. Cras consectetur elementum mauris ut facilisis. Cras vel eros faucibus sapien cursus lobortis. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
    
    <img src="http://boundlessdm.com/dev/boundless/sample-pic.jpg" />
    
    <p>Maecenas ac dapibus quam. Nam dolor lorem, euismod eu sollicitudin iaculis, commodo sit amet magna. Nullam vulputate volutpat pretium. Aliquam non elit ut dolor adipiscing tristique. Proin vel nibh nunc. Curabitur molestie, libero et viverra porttitor, metus justo vulputate nisl, sit amet cursus lacus justo at mi. In quis viverra nisl. Phasellus non tempor orci.</p>
    
  <div class="lower-container">
     <img src="http://boundlessdm.com/dev/boundless/sample-pic.jpg" />
     <img src="http://boundlessdm.com/dev/boundless/sample-pic.jpg" />
     <img src="http://boundlessdm.com/dev/boundless/sample-pic.jpg" />
  </div>
    
  </div>  
</div>
            
          
!

CSS

            
              .container {
 background:#363636; 
 padding:10px;
}

.content {
  max-width:1280px;
  margin:auto;
  background:#fff;
  padding:10px;
}

.content img {
  width:90%;
  min-width:300px;
  margin:10px auto;
  display:block;
  height:auto;
}

p { color:#000; font-family:sans-serif; }

.lower-container {
 background:#eee;
 width:100%;
 text-align:center;
 margin:auto;
}

.lower-container img {
 display:inline-block;
 *display:inline;
 zoom:1;
 width:25%;
 height:auto;
 margin:2px;
}

            
          
!

JS

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

Console