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

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.

Want a Run Button?

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

            
              <div class="border"></div>

<div class="container">
  <h1>Lorem Ipsum</h1>
  <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
</div>
            
          
!
            
              html{ 	
	height: 100%;
}

body{
	min-height: 100%;
  margin: 0;
	box-sizing:border-box;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box; 
	position: relative;
	border-top: 5px solid #121212;
	border-bottom: 5px solid #121212;
}

.border{
	position: absolute;
	top:0;
	bottom: 0;
	left: 0;
	right: 0;
	border-top: 5px solid #bf6da5;
	border-bottom: 5px solid #bf6da5;
	box-sizing:border-box;
	-moz-box-sizing:border-box; 
	-webkit-box-sizing:border-box; 
	z-index: -20 !important;
}

body:before, body:after{ 
	content: '';
	position: absolute;
	z-index: 20;
	width: 0;
	border-style: solid;
	left: 50%;
}

body:after{
	border-color: #121212 transparent #121212 transparent;
	top:-3px;
	bottom:-3px;
	border-width: 16px;
	margin-left: -16px;
}

body:before{ 
	border-color: #bf6da5 transparent #bf6da5 transparent;
	top: 0;
	bottom:0;
	border-width: 20px;
	margin-left: -20px;
}

.container{
  width: 60%;
  max-width: 700px;
  min-width: 300px;
  margin: 40px auto;
  font-family: 'helvetica neue', 'helvetica', 'pt sans', 'arial', sans-serif;
  font-weight: 300;
  color: #333;
}
            
          
!
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