CodePen

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>
            
          
!
via HTML Inspector

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;
}

            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................