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.

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

            
              <!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
<style>
html { font-family: 'Myriad Pro', Myriad, 'Myriad Web Pro', 'Microsoft Sans Serif', 'MS Sans Serif', 'MS Reference Sans Serif', 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Geneva, 'Helvetica Neue', Arial, sans-serif
}
body { margin: 0; padding: 0; box-sizing: border-box; }
.c-primary { color: #0b5351; }
.c-white { color: #fff; }
.c-lgrey { color: #f5f5f5; }
.b-primary { background-color: #0b5351; }
.b-silver { background-color: #eee; }
.img-r { max-width: 100%; height: auto; vertical-align: middle; border-style: none; }
header { display: flex; justify-content: space-between; align-items: center; padding: 2rem 5rem; }
main { display: -webkit-box; display: -ms-flexbox; display: flex; flex-direction: column; background-color: #f5f5f5; padding-top: 2rem; }
.maincol { padding: 0 1rem 1rem 1rem; }
.sidebar { margin: 0; }
.sidebar_inner { height: 60%; padding: 2rem; }
.logo { height: auto; width: 250px; }
ul.sidelist a { color: #fff; text-decoration: none; }
ul.sidelist a:hover,a:focus,a:visited { text-decoration: underline; }
footer { padding: 2rem; color: #fff; background-color: #0b5351; align-items: stretch; }
@media (min-width: 50rem) {
main { flex-direction: row; }
.maincol { flex-basis: 60%; padding: 1rem 5rem 0 5rem; }
.sidebar { flex-basis: 25%; padding: 2.5rem 2rem 0 0; }
.sidebar_inner { height: 35%; }
footer { flex-basis: 100%; }
}
</style>
</head>
<body>
  <header>
    <img src="https://placeholder.com/wp-content/uploads/2018/10/placeholder.com-logo1.jpg" alt="" class="logo">
  </header>

<main>
  <div class="maincol">


    <!-- main content -->
      <h1 class="c-primary">Lorem ipsum dolor sit amet</h1>

      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue.</p>

<p>Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor. Pellentesque auctor nisi id magna consequat sagittis. Curabitur dapibus enim sit amet elit pharetra tincidunt feugiat nisl imperdiet. Ut convallis libero in urna ultrices accumsan. Donec sed odio eros. Donec viverra mi quis quam pulvinar at malesuada arcu rhoncus. </p>

<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In rutrum accumsan ultricies. Mauris vitae nisi at sem facilisis semper ac in est.</p>

<ul>
  <li>In euismod ultrices</li>
  <li>Morbi id quam sapien</li>
  <li>Duis elementum</li>
  <li>Suspendisse</li>
</ul>

<p>Vivamus fermentum semper porta. Nunc diam velit, adipiscing ut tristique vitae, sagittis vel odio. Maecenas convallis ullamcorper ultricies. Curabitur ornare, ligula semper consectetur sagittis, nisi diam iaculis velit, id fringilla sem nunc vel mi. Nam dictum, odio nec pretium volutpat, arcu ante placerat erat, non tristique elit urna et turpis. Quisque mi metus, ornare sit amet fermentum et, tincidunt et orci. Fusce eget orci a orci congue vestibulum. Ut dolor diam, elementum et vestibulum eu, porttitor vel elit. Curabitur venenatis pulvinar tellus gravida ornare. Sed et erat faucibus nunc euismod ultricies ut id justo. Nullam cursus suscipit nisi, et ultrices justo sodales nec. Fusce venenatis facilisis lectus ac semper. Aliquam at massa ipsum. Quisque bibendum purus convallis nulla ultrices ultricies. Nullam aliquam, mi eu aliquam tincidunt, purus velit laoreet tortor, viverra pretium nisi quam vitae mi. Fusce vel volutpat elit. Nam sagittis nisi dui.</p>

<p>Suspendisse lectus leo, consectetur in tempor sit amet, placerat quis neque. Etiam luctus porttitor lorem, sed suscipit est rutrum non. Curabitur lobortis nisl a enim congue semper. Aenean commodo ultrices imperdiet. Vestibulum ut justo vel sapien venenatis tincidunt. Phasellus eget dolor sit amet ipsum dapibus condimentum vitae quis lectus. Aliquam ut massa in turpis dapibus convallis. Praesent elit lacus, vestibulum at malesuada et, ornare et est. Ut augue nunc, sodales ut euismod non, adipiscing vitae orci. Mauris ut placerat justo. Mauris in ultricies enim. Quisque nec est eleifend nulla ultrices egestas quis ut quam. Donec sollicitudin lectus a mauris pulvinar id aliquam urna cursus. Cras quis ligula sem, vel elementum mi. Phasellus non ullamcorper urna.</p>

<p>Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. In euismod ultrices facilisis. Vestibulum porta sapien adipiscing augue congue id pretium lectus molestie. Proin quis dictum nisl. Morbi id quam sapien, sed vestibulum sem. Duis elementum rutrum mauris sed convallis. Proin vestibulum magna mi. Aenean tristique hendrerit magna, ac facilisis nulla hendrerit ut. Sed non tortor sodales quam auctor elementum. Donec hendrerit nunc eget elit pharetra pulvinar. Suspendisse id tempus tortor. Aenean luctus, elit commodo laoreet commodo, justo nisi consequat massa, sed vulputate quam urna quis eros. Donec vel. </p>

<img src="https://picsum.photos/id/1078/1024/512" alt="placeholder" class="img-r">

<p>&nbsp;</p>

  </div>

  <!-- sidebar -->
  <div class="sidebar">
    <div class="sidebar_inner c-white b-primary">
		<h3 class="c-lgrey">In euismod ultrices</h3>
      <ul class="sidelist">
          <li><a href="#">Morbi id quam sapien [date]</a></li>
          <li><a href="#">F.A.Q.</a></li>
          <li><a href="#">Duis elementum</a></li>
      </ul>

      <p class="c-white"><strong>Vivamus fermentum:</strong>&nbsp;<br>
      Nunc diam velit<br>
      adipiscing ut tristique<br>
      Maecenas convallis 55555-5555<br>
      <br>
      <strong>ullamcorper :</strong>&nbsp;&nbsp;<br>
      (800) 555-5555</p>
    </div>
  </div>
</main>

<footer>
  <h4>© Curabitur ornare</h4>
</footer>

</body>
</html>

            
          
!

CSS

            
              
            
          
!

JS

            
              
            
          
!
999px

Console