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

              
                <h1>VERTICAL TIMELINE</h1>
<div id="timeline">
  <div></div>
  <section>
    <div>
      <img src="http://placehold.it/50x50"/>
    </div>
    <div>
      <h2>Lets Talk</h2>
      <h3>We'll have a chat in person, over the phone or email so that I can find out your goals and what you want from the website.</h3>
    </div>
  </section>
  
  <section>
    <div>
      <img src="http://placehold.it/50x50"/>
    </div>
    <div>
      <h2>Agreement</h2>
      <h3>I'll create a project charter which states what I'm going to deliver. I'll then take a down-payment of 50%, with the remaining 50% to be paid once the project is complete.</h3>
    </div>
  </section>
  
  <section>
    <div>
      <img src="http://placehold.it/50x50"/>
    </div>
    <div>
      <h2>Research</h2>
      <h3>I need to know more about your business, so I'll ask plenty of questions. I'll research your sector and take a good look at your competitors; allowing me to ultimately make your website more successful than theirs.</h3>
    </div>
  </section>
    <section>
    <div>
      <img src="http://placehold.it/50x50"/>
    </div>
    <div>
      <h2>Prototyping</h2>
      <h3>I'll create a draft of your website including the content and design. This is an iterative process where I'll work with you to make improvements and make sure you're happy with it.</h3>
    </div>
  </section>
</div>
              
            
!

CSS

              
                h1 {
  text-align: center;
  color: #eee;
  font-family: sans-serif;
  font-size: 80px;
}

body {
  background-color: #000;
}

#timeline {
  position: relative;
  margin: 0 auto;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 900px;
}

#timeline > div {
  width: 13px;
  height: 100%;
  position: absolute;
  color: #111115;
  background-color: #111115;
  z-index: -1;
  left: 37px;
}

#timeline section {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  margin: 25px 0;
}

#timeline section div {
  box-sizing: border-box;
  display: flex;
	flex-direction: column;
  background-color: #111115;
}

#timeline section div img {
  margin: auto;
  height: 50px;
  width: 50px;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

#timeline section div:first-child {
  width: 90px;
  margin-right: 10px;
}

#timeline section div:last-child {
  width: 100%;
  padding: 40px 25px;
}

#timeline section h2,
#timeline section h3 {
  margin: 0;
  color: #eee;
  font-family: sans-serif;
  line-height: 1.3;
}

#timeline section h3 {
 margin-top: 15px;
 font-size: 18px;
}
              
            
!

JS

              
                
              
            
!
999px

Console