octocatstartv

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="content">
<div class="h1">Content Boxes in Columns</div>

<div id:"col-wrap">
	<div>
     	<div class="col c2-3">
	   	<p>Etiam porta sem malesuada magna mollis euismod. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Donec sed odio dui.
<br>
Maecenas faucibus mollis interdum. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
     	</div>
     	<div class="col c1-3">
	     	<div class="pink-box">
	     	</div>
	    </div>
	</div>

	<div>
		<div class="col c3-4">
      <p>Donec sed odio dui. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec ullamcorper nulla non metus auctor fringilla.</p>

      <p>Sed posuere consectetur est at lobortis. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras mattis consectetur purus sit amet fermentum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Nullam quis risus eget urna mollis ornare vel eu leo.</p>

<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Aenean lacinia bibendum nulla sed consectetur. Vestibulum id ligula porta felis euismod semper.</p>
		</div>
        <div class="col c1-4">
	        <div class="pink-box" style="height:300px">
	        </div>
        </div>
    </div>

    <div>
		<div class="col c1-2">
	        <div class="grey-box">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
<br>
  Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec sed odio dui. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
	        </div>
        </div>
        
		<div class="col c1-2">
	        <div class="grey-box">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
<br>
  Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec sed odio dui. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
	        </div>
        </div>
    </div>
        
    <div>
		<div class="col c3-4">
	        <div class="grey-box grey-panel">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
<br>
Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec sed odio dui. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
				</div>
	        </div>
	    </div>
		<div class="col c1-4">
        <div class="grey-box grey-panel">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
			</div>
        </div>
        </div>
       <div class="footer">
         
                <div class="footer-container-columns">
                    <div class="footer-left">
                        <p class="footer-title">
                            About Us
                        </p>
                        <p>
                          Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Donec ullamcorper nulla non metus auctor fringilla. Curabitur blandit tempus porttitor. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Curabitur blandit tempus porttitor.
                        </p>
                    </div>
                    <div class="footer-center">
                        <p class="footer-title">
                            <a href="/faq">Resources</a>
                        </p>
                        <p>
                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas faucibus mollis interdum. Sed posuere consectetur est at lobortis. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
                        </p>
                    </div>
                    <div class="footer-right">
                        <p class="footer-title">
                            Contact Us
                        </p>
                        <p>
                            Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
                        </p>
                    </div>
                </div>
            </div>
    </div>
</body>
</html>

            
          
!

CSS

            
              .content
{
    width:1040px;
    margin:0 auto;
}

.wrapper
{
    background:#fcfce3 repeat-x 0 0;
}

/* headings */
.h1
{
	text-align: left;
	color: #679104;
	font-family: 'Georgia';
	font-size: 25px;
	font-style: italic;
	padding-top: 35px;
	}

.h2
{
	text-align: left;
	color: #679104;
	font-family: 'Georgia';
	font-size: 25px;
	font-style: italic;
	padding-top: 10px;
	}

/* columns */
#col-wrap {
	width: 1040px;
	overflow: hidden;
}

.col {
	float: left;
	margin-right: 10px;
  padding-top: 10px;
}

.c2-3 {
	width: 690px;
}
.c1-3 {
	width: 340px;
}
.c3-4 {
	width: 777.5px;
}
.c1-2 {
	width: 515px;
}
.c1-4 {
	width: 252.5px;
}

.col:nth-of-type(1) {
	margin-left: 0;
}

.col:nth-last-of-type(1) {
	margin-right: 0;
}

/* content boxes */
.pink-box {
	background-color: #bb0567;
	border: 3px solid #a20459;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
	-webkit-box-shadow: inset 0 0 8px rgba(0,0,0,0.8);
	-moz-box-shadow: inset 0 0 8px rgba(0,0,0,0.8);
	box-shadow: inset 0 0 8px rgba(0,0,0,0.8);
	min-width:250px;
	min-height: 150px;
}

.grey-box {
	-webkit-box-shadow: inset 0 0 8px rgba(0,0,0,0.4);
	-moz-box-shadow: inset 0 0 8px rgba(0,0,0,0.4);
	box-shadow: inset 0 0 8px rgba(0,0,0,0.4);
	min-width: 25px;
	min-height: 25px;
	display: inherit;
}

.grey-panel {
	background-color: #f4f4f4;
	width: inherit;
	height: inherit;
}

/*Footer*/
.footer
{
    width:100%;
    background:#047098;
    margin-top:-20px;
    position:relative;
    z-index:200;
    clear:both;
}
.footer-container-columns
{
    width:1000px;
    margin: 0 auto;
    color:#fff;
    padding-top:15px;
    font-size:16px;
    padding-bottom:15px;
    overflow:hidden;
}
.footer-container-columns a 
{
    color:#fff;
    text-decoration:none;    
}
.footer-left
{
    float:left;
    width:354px;    
}
.footer-center
{
    float:left;
    width:215px;    
    margin-left:85px;
}
.footer-right
{
    float:left;
    width:255px;
    margin-left:85px;
}
            
          
!

JS

            
              
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console