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

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

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="wrapper">
	
	<div class="row header-area">
		<div class="col-33">
			<a href="#"><img src="http://via.placeholder.com/200x50?text=Logo Image" alt="logo image"></a>
		</div><!-- .col -->
		<div class="col-66">
			<div class="nav">
				<a href="#">Home</a> 
				<a href="#">About</a> 
				<a href="#">Contact</a>
			</div><!-- .nav -->
			<div class="social">
				<a href="#"><img src="http://via.placeholder.com/30x30?text=icon" alt="social media icon"></a> 
				<a href="#"><img src="http://via.placeholder.com/30x30?text=icon" alt="social media icon"></a> 
				<a href="#"><img src="http://via.placeholder.com/30x30?text=icon" alt="social media icon"></a>
			</div><!-- .social -->
		</div><!-- .col -->
	</div><!-- .row.header-area -->
	
	
	<div class="row hero-area">
		<div class="col-100">
			<img src="http://via.placeholder.com/600x250?text=Hero Graphic" alt="hero image">
		</div><!-- col -->
	</div><!-- row.hero-area -->
	
	
	<div class="row content-area">
		<div class="col-33">
			<ul>
				<li><a href="#">Sidebar Nav Item</a></li>
				<li><a href="#">Sidebar Nav Item</a></li>
				<li><a href="#">Sidebar Nav Item</a></li>
				<li><a href="#">Sidebar Nav Item</a></li>
			</ul>
		</div><!-- col -->
		<div class="col-66">
			<h1>Primary Headline Here</h1>
			<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quasi adipisci veritatis quidem iusto eveniet possimus deleniti excepturi laborum, sint dolore tempore, perferendis aliquam. Earum officiis laboriosam, culpa veniam eius provident!</p>
			<div class="row nested">
				<div class="col-50">
					<a href="#"><img src="http://via.placeholder.com/150x100?text=Featured Image" alt="hero image"></a>
					<p><a href="#">Featured Article Title</a></p>
				</div><!-- col -->
				<div class="col-50">
					<a href="#"><img src="http://via.placeholder.com/150x100?text=Featured Image" alt="hero image"></a>
					<p><a href="#">Featured Article Title</a></p>
				</div><!-- col -->
			</div><!-- row nested -->
		</div><!-- col -->
	</div><!-- row.content-area -->
	
	
	<div class="row subfooter-area">
		<div class="col-100">
			<button>Call To Action Button</button>
		</div><!-- col -->
	</div><!-- row.subfooter -->
	
	
	<div class="row footer-area">
		<div class="col-50">
			<p>Some copyright text would go here.</p>
		</div><!-- col -->
		<div class="col-50 align-right">
			<a href="#">Home</a> 
			<a href="#">About</a> 
			<a href="#">Contact</a>
		</div><!-- col -->
	</div><!-- row.footer -->
	
</div><!-- wrapper -->
            
          
!
            
              /* Intentionally not using any ultra fancy css here.  We want this to work in internet explorer 7,8,9,10 */

* {
	box-sizing: border-box;
}

body { 
	color: #555; 
}

a {
	color: #06c;
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
}

.wrapper {
	max-width: 600px;
	margin: auto;
}

.row {
	overflow: hidden; /* quick and dirty clearfix */
}

[class^=col-] {
	float: left;
}

.col-100 {
	width: 100%;
}

.col-66 {
	width: 66.6%;
}

.col-50 {
	width: 50%;
}

.col-33 {
	width: 33.3%;
}

.header-area {
	background: #aaa;
}

.header-area .col-33 img {
	display: block;
}

.header-area .col-66 {
	text-align:right;
}

.header-area .nav, 
.header-area .social {
	display: inline;
}

.header-area .social {
	position: relative;
	top:10px;
	margin-left: 15px;
}

.hero-area img {
	display: block;
}

.content-area .col-33 {
	background: #e1e1e1;
}

.content-area .col-33 ul {
	list-style:none; 
	margin:0; 
	padding:20px;
}

.content-area .col-66 {
	background: #eee;
	padding: 20px;
}

.row.nested .col-50 {
	padding: 0 10px;
}

.subfooter-area {
	background: #ccc;
}

.subfooter-area .col-100 {
	padding: 20px;
	text-align:center;
}

.footer-area {
	background: #aaa;
}

.footer-area .align-right {
	text-align:right;
	padding-top:15px
}

@media(max-width:500px) {
	[class^=col-] {
		width: 100%;
		float: none;
	}
	
	.header-area {
		text-align:center;
	}
	
	.header-area .col-33 img {
		display: inline;
	}
	
	.header-area .nav, 
	.header-area .social {
		display: block;
		text-align:center;
	}
	
	.header-area .social {
		position: static;
		margin-left: 0;
	}
	
	.content-area .col-33 {
		text-align:center;
	}
	
	.row.nested .col-50 {
		float: left;
		width: 50%;
	}
	
	.footer-area {
		text-align: center;
	}
	
	.footer-area .align-right {
		text-align:center;
		padding: 0;
	}
}
            
          
!
999px
Loading ..................

Console