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="blue-bg"></div>
<div class="white-bg shadow"></div>
<div class="content">
  <h1>Slanted & Enchanted</h1>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin magna ex, elementum id convallis eu, elementum id justo. Maecenas dictum sagittis leo, ut ultrices risus mollis vitae. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus
    eu lectus felis. Vivamus eget velit erat. Vivamus condimentum augue sed lacus viverra imperdiet. Etiam quis lectus non libero hendrerit porta. In sit amet molestie lacus. Praesent ultricies, lectus eget porta porttitor, sem sapien facilisis arcu,
    eu tincidunt nulla odio ac ipsu.</p>

  <p>Praesent eu arcu convallis, faucibus turpis eu, rutrum nisi. Integer rutrum ipsum at aliquam consequat. In dignissim lorem nibh, nec iaculis est fermentum vitae. Maecenas sodales, nunc eget lacinia volutpat, nibh mi lobortis leo, id varius urna tellus
    ut magna. Sed porttitor nunc et luctus efficitur. Nam sit amet congue nulla. Praesent dapibus erat arcu, at scelerisque arcu faucibus vel. Morbi blandit venenatis elit. Nam feugiat bibendum suscipit. Donec viverra eu lorem eu venenatis. Nullam posuere
    nulla id libero rutrum venenatis. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nam molestie ac velit vel blandit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis
    egestas.</p>
</div>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Montserrat)
@import url('https://fonts.googleapis.com/css?family=Open+Sans')

h1
  font-family: 'Montserrat', sans-serif

p
  font-family: 'Open Sans', sans-serif
  text-align: justify

.blue-bg
  position: fixed
  background: url(https://www.mangoafricansafaris.com/sites/www.mangoafricansafaris.com/files/styles/original/public/gallery/chumbe_bungallow_and_forest_overview_oskar_henriksson.jpg?itok=UXkgUC5y)
  background-size: cover
  background-color: #58aff6
  top: 0
  height: 400px
  width: 100vw
  z-index: -1

.white-bg
  position: absolute
  top: 0
  background-color: #fff
  min-height: 500px
  margin: 210px 0px
  width: 100vw
  height: 100vh
  transform: skewY(5deg)
  z-index: -1

.content
  position: absolute
  top: 0
  margin: 250px 10vw
  max-width: 60vw
  background-color: #fff
    
.shadow
  box-shadow: -2px -5px 5px 0px rgba(0,0,0,0.3)

            
          
!
            
              /*-- Notes:

Header IMG:   Change image by swapping out url in .blue-bg
              Make solid color by removing 'background' properties
Slant angle:  Modify skewY degree in .white-bg
Top distance: Slant distance from top = margin in .white-bg
              Text distance from top = margin in .content
Fixed Header: 'turn off' with "position: absolute" in .blue-bg

--*/
            
          
!
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