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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

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