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

              
                <main>
  <div class="left">
    <header>
      <div class="logo"><img src="https://via.placeholder.com/129x41.png" /></div>
      <nav>
        <ul>
          <li><a href="/about">About</a></li>
          <li><a href="/collection">Collection</a></li>
          <li><a href="/journal">Journal</a></li>
          <li><a href="/contact">Contacts</a></li>
        </ul>
      </nav>
    </header>
    <section>
      <h1>Dalvik Vessels</h1>
      <p>Lorem ipsum dolor sit amet, fugit fabellas usu eu, ex dictas partiendo reformidans qui. Id mea noster prompta instructior, clita dicam discere mea et. Mea id reque admodum, qui cu liber consequat, diceret sanctus meliore an quo. Has hinc commodo consectetuer te, stet latine ei sit.</p>
    </section>
    <div class="bottom">
      <ul>
        <li><a href="https://facebook.com" target="_blank">FB</a></li>
        <li><a href="https://instagram.com" target="_blank">IG</a></li>
        <li><a href="https://youtube.com" target="_blank">YT</a></li>
      </ul>
      <button>Scroll</button>
    </div>
  </div>
  <div class="right">
    <img src="https://via.placeholder.com/447x761.png" />
  </div>
</main>
              
            
!

CSS

              
                *,
::before,
::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: #FFF;
}

body {
  font-size: 16px;
}

main {
  display: flex;
  width: 100vw;
  height: 100vh;
  background-color: #003d2b;
}

h1 {
  font-size: 9em;
  font-weight: normal;
  word-spacing: 100vw;
  line-height: 1;
  margin: 0 0 .3em 0;
}

a{
  color: #FFF;
  text-decoration: none;
  font-family: sans-serif;
}

a:hover{
  text-decoration: underline;
}

p {
  display: flex;
  font-family: sans-serif;
  font-size: .85em;
  line-height: 1.4em;
  flex: 0 0 25em;
  align-self: flex-end;
  margin-left: auto;
}

.left {
  width: 66.1%;
  padding: 1.2em 7.8%;
  min-height: 100%;
  display: flex;
  flex-wrap: wrap;
}

.right {
  width: 33.9%;
  display: flex;
  justify-content: center;
  height: 100%;
}

.right img {
  display:  block;
  width: 100%;
      object-fit: cover;
}

header {
  display: flex;
  align-items: center;
  flex: 0 0 100%;
  margin-bottom: 1em;
  margin-botton: 0;
}

header nav {
  margin-left: auto;
}

header a{
  margin-left: .8em;
  text-transform: uppercase;
}

ul {
  margin: 0;
  padding: 0;
  display: flex;
}

li {
  list-style-type: none;
}

section {
  align-self: flex-end;
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
}

.bottom {
  align-self: flex-end;
  flex: 0 0 100%;
  display: flex;
  padding: 1.2em 0;
}

.bottom a {
  margin-right: 0.8em;
}

button {
  margin-left: auto;
  border-radius: 0;
  background-color: transparent;
  border: none;
  font-size: 1em;
  color: #FFF;
  text-transform: uppercase;
}

              
            
!

JS

              
                
              
            
!
999px

Console