Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <section>
  <div class="row" style="position:relative">
    <div class="se-slope se-slope-black swirl"></div>

    <div class="se-slope se-slope-pink"></div>

    <div id="floatbox">
      <div id="stuff" class="container text-center">
        <div class="col-xs-12 col-sm-7 col-md-7 computer"></div>
        <div class="col-xs-12 col-sm-5 col-md-5 bg-white rightside">
          <h2 class="font-heavy pad-md-top">Learn the Tech. Grow Your Skills.</h2>
          <p>We teach you the skils you need to thrive and survive online.</p>
          <button class="btn btn-block btn-primary font-size-md mar-md-top">
            Sign Up
          </button>
        </div>
      </div>
    </div>
  </div>
</section>

<section>
 <div class="row" style="position:relative">
    <div class="se-slope se-slope-pink"></div>

    <div class="se-slope se-slope-black orange"></div>        

<div id="floatbox2">
  <div id="stuff2" class="container text-center">
    
    <div class="col-xs-12 col-sm-5 col-md-5">
          <h2 class="font-heavy pad-md">Learn the Skills You Need to Thrive Online</h3>
          <p class="pad-md">From WordPress customization right through to Facebook Advertising, Business Planning and beyond.</p>
          <ul>
          <li class="pad-sm">New Courses Released Every Week</li>
          <li class="pad-sm">Private Facebook Community</li>
          <li class="pad-sm">Weekly Live Webinars</li>
          <li class="pad-sm">Over $16k of FREE Software</li>
          <li class="pad-sm">Exclusive Discounts & Deals</li>
          </ul>  
    </div>
    
  <div class="col-xs-12 col-sm-7 col-md-7">
    <div class="spence"></div>
  </div>
</div>
   </div>
</section>
              
            
!

CSS

              
                .spence {
  background-image:url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/277084/spence640-1.png);
  height:440px;
  padding:0;
  background-size:contain;
  background-repeat:no-repeat;
  background-position: bottom;
  z-index:1;
}

.computer {
  background-image:url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/277084/spencebook.png);
  height:440px;
  padding:20px;
  background-size:contain;
  background-repeat:no-repeat;
  background-position: middle center;
  
}

.bg-white {
  background:#FFF;
}

.rightside {
  border:4px solid green;
  display:block;
  overflow:hidden;
}

#floatbox {
  position:absolute;
  border:1px solid red;
  z-index:1;
  width:100%;
  top:0;
}

#floatbox2 {
  position:absolute;
  border:1px solid red;
  z-index:1;
  width:100%;
}

#stuff {
  display:block;
  border:5px solid blue;
  max-height:500px;
  padding-top:50px;
}

#stuff2 {
  display:block;
  border:5px solid blue;
  max-height:500px;
  padding-top:50px;
  height:500px;
}

.se-slope{
	width: 50%;
	height: 500px;
	position: relative;
	float: left;
	overflow: hidden;
}
.se-slope .se-content{
	margin: 50px 100px 0px 100px;
}
.swirl{
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/277084/stock-vector-radial-comic-background-swirl-design-vortex-spiral-illustration-vector-rays-pattern-can-be-used-435390946-1.jpg);
    background-size: cover;
    background-position: center;
}

.orange {
    background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/277084/orange.jpg);
    background-size: cover;
    background-position: center;

}



.se-slope-pink{
	background: #FFF;
}
.se-slope-black:nth-child(odd):after{
	content: '';
	position: absolute;
	display: block;
	bottom: 0px;
	width: 0px;
	height: 0px;
	border-top: 0 solid transparent;
	border-bottom: 500px solid transparent;
}
.se-slope-black:nth-child(even):after{
	content: '';
	position: absolute;
	display: block;
	bottom: 0px;
	width: 0px;
	height: 0px;
	border-top: 500px solid transparent;
	border-bottom: 0 solid transparent;
}
.se-slope-black:nth-child(odd):after{
	border-right: 150px solid #FFF;
	right: 0px;
}
.se-slope-black:nth-child(even):after{
  border-left: 150px solid #FFF;
	left: 0;
}
.se-content h3{
	z-index: 10;
	font-size: 30px;
	margin-top: 60px;
	position: relative;
	display: inline-block;
	padding: 15px 20px;
	line-height: 40px;
	height: 40px;
	font-family: 'Bitter', 'Trebuchet MS', Arial;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.9);
}
.se-slope.se-slope-black h3{
	background: #e90089;
}
.se-slope.se-slope-pink h3{
	background: #000;
}
.se-slope.se-slope-black h3:after,
.se-slope.se-slope-black h3:before,
.se-slope.se-slope-pink h3:after,
.se-slope.se-slope-pink h3:before{
	content: '';
	width: 0px;
	height: 0px;
	top: 0px;
	position: absolute;
}
.se-slope.se-slope-black h3:after{
	border-top: 70px solid transparent;
	border-left: 30px solid #e90089;
	right: -30px;
}
.se-slope.se-slope-black h3:before{
	border-bottom: 70px solid transparent;
	border-right: 30px solid #e90089;
	left: -30px;
}
.se-slope.se-slope-pink h3:after{
	border-top: 70px solid transparent;
	border-right: 30px solid #000;
	left: -30px;
}
.se-slope.se-slope-pink h3:before{
	border-bottom: 70px solid transparent;
	border-left: 30px solid #000;
	right: -30px;
}
.se-content p{
	position: absolute;
	z-index: 9;
	opacity: 0.3;
	font-size: 50px;
	text-align: left;
	-webkit-transform-origin: top center;
	-moz-transform-origin: top center;
	-o-transform-origin: top center;
	-ms-transform-origin: top center;
	transform-origin: top center;
}
.se-slope:nth-child(even) .se-content p{
	-webkit-transform: rotate(-15deg);
	-moz-transform: rotate(-15deg);
	-o-transform: rotate(-15deg);
	-ms-transform: rotate(-15deg);
	transform: rotate(-15deg);
	top: -100px;
	right: -50px;
	text-align: left;
	width: 95%;
}
.se-slope:nth-child(odd) .se-content p{
	-webkit-transform: rotate(15deg);
	-moz-transform: rotate(15deg);
	-o-transform: rotate(15deg);
	-ms-transform: rotate(15deg);
	transform: rotate(15deg);
	top: -100px;
	left: -50px;
	text-align: right;
	width: 90%;
}
.se-slope.sl-slope-pink .se-content p{
	color: #000;
}
/* Media Queries */
@media screen and (max-width: 767px) {
	.se-slope{
		float: none;
		width: 100%;
	}
	.se-slope .se-content {
		margin: 50px 0px 0px 0px;
	}
	.se-slope-black:nth-child(odd):after,
	.se-slope-black:nth-child(even):after{
		display: none;
	}
}
@media screen and (max-width: 959px) {
	.se-content h3{
		font-size: 20px;
	}
}

@media screen and (max-width: 768px){
  
  
}
              
            
!

JS

              
                
              
            
!
999px

Console