startv

wKbIh

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="mainContent">
			
				<!--		start of articles		-->
				<article>
									
					<div class="post-wrap">
						<header>
										
							<h1><a href="">This is Photoshop's version  of Lorem Ipsum. Proin gravida nibh vel velit auctor aliquet. 
							</a></h1>
							
						</header>
					
						<a class ="previewImg" href="#">
								<img src="http://lorempixel.com/90/90" alt="Post picture" />
						</a>
						
						<p>
							This is Photoshop's version  of Lorem Ipsum. Proin gravida nibh vel velit auctor aliquet. Aenean sollicitudin, lorem quis bibendum auctor, nisi elit consequat ipsum, nec sagittis sem nibh id elit. Duis sed odio sit amet ...
              <a class="more" href="">Read More</a>
						</p>
						
					
					</div>					
				</article>
</div>
            
          
!

CSS

            
              .mainContent {
 display:block;
  position:relative;
  width:500px;
  margin:0 auto;
}

h1 a {
  display:block;
 font-size:36px;
  font-weight:100;
  line-height:1.5em;
  text-decoration:none;
  color:red;
}
p {
 line-height:1.5em; 
  padding-left:1.5em;
}

h1 a:hover {
 color:yellow; 
}
a img {
 display:block;
  position:absolute;
  top:185px;
  left:-100px;
}
            
          
!

JS

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

Console