Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <div class="hero">
    <div class="hero--content">
        <span class="hero--text">Colors,<br>Explosions & stuff!</span>
    </div>
</div>
<div class="content">
    <p>
        Electronic Music Friends besteht aus motivierten, jungen Leuten, die eines gemeinsam haben:
    </p>
    <p>
        <b>Die Liebe zur elektronischen Tanzmusik</b>
    </p>
    <p>
        Ob Trance, Hardstyle, House, Minimal, Tech, Dubstep oder Hands Up. Wir feiern alles, was "drückt".
        Wenn Du also auch auf Party, abgefahrene Locations, Open Air Events, den Duft von Nebelfluid in der Nase und lauter Musik im Ohr stehst, dann bist du bei uns genau richtig!
        Du bist DJ, LJ, Fotograf oder Filmer?
        Du möchtest vielleicht selbst ein Event über den Verein organisieren?
        Oder liebst du einfach elektronische Musik und bist auf der Suche nach Gleichgesinnten?
        Egal wie, bei uns ist jede Art von Unterstützung herzlich Willkommen!
    </p>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Lato:400,300,700,900,100|Oswald:400,300,700|Roboto+Condensed:400,300,700|PT+Sans+Narrow:400,700|Noto+Sans:400,700|Poiret+One|Libre+Baskerville:400,700,400italic);

html,
body {
    width: 100%;
    height: 100%;
    font-family: 'Libre Baskerville';
}

.hero {
    width: 100%;
    height: 100%;
    position: relative;
    
    &:before,
    &:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    &:before {
        background: url('//c1.staticflickr.com/9/8771/17298186692_8390fc1c00_k.jpg');
        background-size: cover;
        background-position: center bottom;
        background-repeat: no-repeat;
        filter: sepia(0.25) grayscale(0.1);
    }
    
    
    &:after {
        background: linear-gradient(to right, #D24335 55%, #6E4CD2);
        opacity: .5;
    }
}

.hero--content {
    font-size: 4rem;
    line-height: 1.4em;
    color: #fff;
    opacity: 1;
    display: block;
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero--text {
    font-family: 'Lato';
    font-weight: 700;
    background: rgba(#000, .85);
    padding: .08em 1rem;
    box-decoration-break: clone;
}

.content {
    max-width: 800px;
    width: 100%;
    margin: 2rem auto;
    display: block;
}

p {
    font-size: 1.4rem;
    line-height: 1.4em;
    margin-bottom: 1.6rem;
}
              
            
!

JS

              
                
              
            
!
999px

Console