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 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

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

              
                <head>
  <link href="https://fonts.googleapis.com/css?family=Inconsolata|Montserrat&display=swap" rel="stylesheet">
  <meta content="width=device-width, initial-scale=1" name="viewport" />
  <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>

<body>
  <header>
    <h1><u>Lorem Ipsum</u></h1>
    <span class="menu"><i class="material-icons" style="font-size: 48px;">menu</i></span>
  </header>
  <div class='content'>
    <p>Lorem ipsum, quia dolor sit, amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt,
      ut labore et dolore magnam aliquam quaerat voluptatem.</p>
    <img src="https://raw.githubusercontent.com/pg0408/frontend-demo/master/statue.JPG" alt="Statue of man sitting">
    <p>Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea
      commodi consequatur? quis autem vel eum iure reprehenderit, qui in ea voluptate velit esse, quam nihil molestiae
      consequatur, vel illum, qui dolorem eum fugiat, quo voluptas nulla pariatur?</p>
    <p>At vero eos et accusamus et iusto odio dignissimos ducimus
      <ul>
        <li>Qui blanditiis praesentium voluptatum deleniti atque corrupti</li>
        <li>Quos dolores et quas molestias excepturi sint</li>
        <li>Obcaecati cupiditate non provident</li>
        <li>Similique sunt in culpa</li>
        <li>Qui officia deserunt mollitia animi</li>
        <li>Id est laborum et dolorum fuga.</li>
      </ul>
    </p>
    <p>Et harum quidem rerum facilis est et expedita distinctio. nam libero tempore, cum soluta nobis est eligendi
      optio, cumque nihil impedit, quo minus id, quod maxime placeat, facere possimus, omnis voluptas assumenda est,
      omnis dolor repellendus. </p>
    <p> temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet, ut et voluptates
      repudiandae sint et molestiae non recusandae. itaque earum rerum hic tenetur a sapiente delectus, ut aut
      reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat. </p>
  </div>
  <footer>
    <button>Click this button</button>
  </footer>
</body>

</html>
              
            
!

CSS

              
                /* 
  color scheme:
    #2c3853;
    #31485F
    #c3c2c3
    #8E6167
    #f3f3ef
  */

body {
  margin: 0;
}

.content {
  padding-left: 10%;
  padding-right: 33%;
  padding-top: 32px;
  padding-bottom: 32px;
  text-align: justify;
  line-height: 200%;
  font-family: "Montserrat";
  background-color: #31485f;
  color: #f3f3ef;
}

button {
  display: block;
  padding: 20px;
  width: 200px;
  margin: auto;
  font-family: "Montserrat";
  background-color: #8e6167;
  color: #f3f3ef;
  border-radius: 15px;
}

h1 {
  font-size: 42px;
  font-family: "Inconsolata";
  color: #f3f3ef;
}

header {
  background-color: #2c3853;
  padding-left: 10%;
  padding-right: 33%;
  padding-bottom: 16px;
  padding-top: 16px;
  position: relative;
}

footer {
  background-color: #8e6167;
  padding-top: 16px;
  padding-bottom: 16px;
}

@media screen and (max-width: 600px) {
  .content {
    padding-right: 10%;
  }
}

img {
  width: 100%;
}

.menu {
  top: 12px;
  right: 12px;
  position: absolute;
  color: #f3f3ef;
}

              
            
!

JS

              
                
              
            
!
999px

Console