123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

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.

            
              <!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="style.css">
    <link href="https://fonts.googleapis.com/css?family=PT+Sans|Raleway" rel="stylesheet">
    <title>Holstee Manifesto</title>
  </head>
  <body>
    <main>
      <section>
        <div class="half var1"><p>This is <span>your</span> life.</p></div>
        <div class="half var2"><p>Do what you love,<br>and do it often.</p></div>
        <div class="wide"><p>If you don’t like something, <br><span>change it.</span></p></div>
        <div class="rightHalfLong"><p>If you don’t like your job, <em><strong>quit</strong></em>.</p></div>
        <div class="half var1"><p>If you don’t have enough time, stop watching TV.</p></div>
        <div class="long"><p>If you are looking for the love of your life, stop; They will be waiting for you when you start doing things you love.</p></div>
        <div class="half var2"><p>Stop over analyzing,<br>life is simple.</p></div>
        <div class="wide"><p>All emotions are <span>beautiful</span>.</p></div>
        <div class="long"><p>When you eat, appreciate every last bite.</p></div>
        <div class="half var2"><p><small>Open your mind, arms, and heart to new things and people, we are united in our differences.</small></p></div>
        <div class="half var1"><p><small>Ask the next person you see what their passion is and <em>share</em> your inspiring dream with them.</small></p></div>
        <div class="half var1"><p>Travel often; getting lost will help you find yourself.</p></div>
        <div class="half var2"><p>Some opportunities only come once, <em>seize them</em>.</p></div>
        <div class="long"><p>Life is about the people you meet, and the things you create with them <strong>so</strong> go out and start creating.</p></div>
        <div class="half var2"><p>Life is <span>short</span>.</p></div>
        <div class="half var1"><p>Live your dream and <strong>share</strong> your passion.</p></div>
      </section>
    </main>
  </body>
</html>

            
          
!
            
              main {
  background-image: url("https://images.unsplash.com/photo-1536113920441-9bc4ca64019c?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=d67825a7eed0a034e7989347a6292229&auto=format&fit=crop&w=1000&q=60");
  background-color: black;
  width: 430px;
  height: 990px;
  border: 10px solid gainsboro;
}

section {
  background-color: rgba(114, 131, 140, 0.25);
  width: 410px;
  height: 980px;
  padding: 10px;
}

p {
  color: white;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  padding: 5px;
}

span {
  font: 2.0em CallunaRegular;
  letter-spacing: .075em;
}

.half {
  display: table;
  float: left;
  height: 9%;
  width: 50%;
}

.var1 { /* pink (to be used with half class) */
  background-color: rgba(232, 53, 220, 0.3);
  font-family: 'Raleway', sans-serif;
}

.var2 {   /* green (to be used with half class) */
  background-color: rgba(35, 229, 190, 0.3);
  font-family: 'PT Sans', sans-serif;
}

.rightHalfLong {   /* purple */
  background-color: rgba(142, 70, 214, 0.3);
  display: table;
  float: right;
  clear: right;
  height: 18%;
  width: 50%;
  font-size: 15px;
  font-family: 'PT Sans', sans-serif;
}

.long {   /* blue */
  background-color: rgba(70, 142, 214, 0.3);
  display: table;
  float: left;
  clear: left;
  height: 18%;
  width: 50%;
  font-size: 15px;
  font-family: 'Raleway', sans-serif;
  line-height: 25px;
  text-align: center;
}

.wide { /* gray */
  background-color: rgba(138, 147, 145, 0.3);
  display: table;
  font-size: 20px;
  font-weight: bold;
  height: 9%;
  width: 100%;
  font-family: 'Raleway', sans-serif;
  text-align: center;
}

@font-face {
    font-family: 'CallunaRegular';
    src: url('http://tangledindesign.com/codepen/fonts/Calluna-Regular-webfont.eot');
    src: url('http://tangledindesign.com/codepen/fonts/Calluna-Regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('http://tangledindesign.com/codepen/fonts/Calluna-Regular-webfont.woff') format('woff'),
         url('http://tangledindesign.com/codepen/fonts/Calluna-Regular-webfont.ttf') format('truetype'),
         url('http://tangledindesign.com/codepen/fonts/Calluna-Regular-webfont.svg#CallunaRegular') format('svg');
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console