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

              
                <div class="wrapper">
  <nav>
    <ul>
      <li><a href="#">Home</a></li>
      <li><a href="#">About</a></li>
      <li><a href="#">Proflie</a></li>
      <li><a href="#">Contact</a></li>
    </ul>
  </nav>
  <div class="main-content">
    <img src = "https://images.unsplash.com/photo-1517646458010-ea6bd9f4a75f?ixlib=rb-0.3.5&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ&s=e114adfaa4d93bab66290a9817fa5ad4" width = 65% height="100%">
    </img>
  
  <div class='aside'>
    <p>
Lorem ipsum dolor sit amet consectetur adipiscing elit, vestibulum placerat molestie dui duis eleifend hendrerit, est dignissim suspendisse cum platea gravida. Sollicitudin nec scelerisque tellus dis odio habitant eu taciti dictumst interdum diam turpis cum tincidunt, montes nisi potenti luctus vulputate ut arcu a lacinia augue nascetur auctor. Convallis cubilia habitasse platea ridiculus phasellus integer vitae etiam dignissim, litora id porta placerat justo lacinia per enim. Tortor parturient senectus dui rutrum per fames phasellus, non duis vel facilisi nibh ridiculus, id quisque purus habitasse feugiat auctor. Condimentum venenatis praesent malesuada nisl convallis nam libero suscipit interdum tempor pulvinar fusce vulputate, et natoque habitasse cubilia dapibus potenti himenaeos lacinia a dictum at lectus. Nec rutrum nascetur laoreet tincidunt quam venenatis nullam ultricies, sapien tempus magnis rhoncus pulvinar molestie.</p>
  </div>
  </div>
  <footer>footer</footer>
</div>
              
            
!

CSS

              
                /* Body and content wrapper styles*/
body {
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 200vh;
  position: absolute;
  background-color: peru;
  display: grid;
  grid-template-rows: 75px repeat(10, 1fr) 300px;
  grid-template-columns: repeat(12, 1fr);
}
.wrapper{
  display: grid;
  grid-template-rows: 75px repeat(10, 1fr) 300px;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: 5px;
  background-color: whitesmoke;
  grid-row: 1 / 13;
  grid-column: 2 / 12;
}

/* Navigation Styles*/
nav {
  background-color: red;
  grid-row: 1 /2;
  grid-column: 1/ 13;
}

nav ul {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
}

li {
  display: flex;
  align-items: center;
  height: 100%;
  list-style-type: none;
  border-right: solid 2px black;
  margin: 0;
  transform: skewX(-10deg);
}
a {
  padding: 10px 20px;
  color: #fff;
  background-color: #285064;
  text-decoration: none;
}
a:hover {
  color: #fff;
  background-color: #12242d;
  transition: .15s;
}

/* Main Content*/
.main-content {
  display: flex;
  flex-direction: row;
  margin: 5px;
  overflow: scroll;
  background-color: #CFD8DC;
  grid-row: 2 / 6;
  grid-column: 1 / 13;
}

/* Footer*/
footer {
  background-color: grey;
  grid-row: 12 / 13;
  grid-column: 1 / 13;
}

@media screen and (max-width:750px){
  
}

              
            
!

JS

              
                
              
            
!
999px

Console