Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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="timeline">
  <div class="timeline__component">
    <div class="timeline__date timeline__date--right">2001</div>
  </div>
  <div class="timeline__middle">
    <div class="timeline__point"></div>
  </div>
  <div class="timeline__component timeline__component--bg">
    <h2 class="timeline__title">The beggining</h2>
    <p class="timeline__paragraph">
      RIETE is set up in 2001 with 25 Spanish physicians participating in sharing the data of their patients in a single database.
    </p>
  </div>
  
  <div class="timeline__component timeline__component--bg">
    <h2 class="timeline__title">The first article</h2>
    <p class="timeline__paragraph">
      We publish our first original article, at <span class = "titol"><a href="https://pubmed.ncbi.nlm.nih.gov/15529451/" target="_blank">The New England Journal of Medicine</a></span>.
    </p>
  </div>
  
  <div class="timeline__middle">
    <div class="timeline__point"></div>
  </div>
  <div class="timeline__component">
    <div class="timeline__date">2004</div>
  </div>
  
  <div class="timeline__component">
    <div class="timeline__date timeline__date--right">2006</div>
  </div>
  <div class="timeline__middle">
    <div class="timeline__point"></div>
  </div>
  
  <div class="timeline__component timeline__component--bg">
    <h2 class="timeline__title">RIETE around the world</h2>
    <p class="timeline__paragraph">
      The database's website is translated into English, aimed to expand RIETE to other countries.
    </p>
  </div>
 
  <div class="timeline__component timeline__component--bottom timeline__component--bg">
    <h2 class="timeline__title">Who dies of a pulmonary embolism?</h2>
    <p class="timeline__paragraph">
      In 2008 <span class = "titol"><a href="https://pubmed.ncbi.nlm.nih.gov/18347212/" target="_blank">Circulation</a></span> we publish an article where we identify patients with a higher risk to die of a pulmonary embolism.
    </p>
  </div>
  
  
  <div class="timeline__middle">
    <div class="timeline__point"></div>
    <div class="timeline__point timeline__point--bottom"></div>
  </div>
  <div class="timeline__component timeline__component--bottom">
    <div class="timeline__date">2008</div>
  </div>
</div>


<div class="timeline">
  <div class="timeline__component">
    <div class="timeline__date timeline__date--right">2014</div>
  </div>
  <div class="timeline__middle">    
  </div>
  <div class="timeline__component timeline__component--bg">
    <h2 class="timeline__title">Better mortality rates</h2>
    <p class="timeline__paragraph">
      The Journal American College Cardiology (JACC) publishes a study showing that over 12 years patients included in RIETE have improved their <strong>health</strong>.
    </p>
  </div>
  
  <div class="timeline__component timeline__component--bg">
    <h2 class="timeline__title">TROMBO.info, a website for patients</h2>
    <p class="timeline__paragraph">
      We launch <a href="https://https://trombo.info/?lang=en/" target="_blank">TROMBO.info</a>, a website to inform patients that uses data from the RIETE registry.
    </p>
  </div>
  
  <div class="timeline__middle">
    <div class="timeline__point"></div>
  </div>
  <div class="timeline__component">
  </div>
  <div class="timeline__component">
    <div class="timeline__date timeline__date--right">2017</div>
  </div>
  <div class="timeline__middle">
    <div class="timeline__point"></div>
  </div>
  
  <div class="timeline__component timeline__component--bg">
    <h2 class="timeline__title">Scientific production</h2>
    <p class="timeline__paragraph">
      In December, we reached our article number 150.
    </p>
  </div>
 
  <div class="timeline__component timeline__component--bottom timeline__component--bg">
    <h2 class="timeline__title">100,000 patients</h2>
    <p class="timeline__paragraph">
      At the beggining of August the RIETE Registry achieves the 100,000 patients.
    </p>
  </div>
  
  
  
  
  <div class="timeline__middle">
    <div class="timeline__point"></div>
    <div class="timeline__point timeline__point--bottom"></div>
  </div>
  <div class="timeline__component timeline__component--bottom">
    <div class="timeline__date">2021</div>
  </div>
</div>
              
            
!

CSS

              
                body {
  background: #ffffff;
 
}

.timeline {
  margin: 0 auto;
  max-width: 750px;
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
  font-family: "Fira Sans", sans-serif;
  color: #777777;
}

.timeline__component {
  margin: 0 20px 20px 20px;
}

.timeline__component--bg {
  padding: 1.5em;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 3px #106fb4;
  border-radius: 10px;
}

/* LEAVE TILL LAST */
.timeline__component--bottom {
  margin-bottom: 0;
}

.timeline__middle {
  position: relative;
  background: #d6d6d6;
}

.timeline__point {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  background: #3F8BC3;
  border-radius: 50%;
}

/* LEAVE TILL LAST */
.timeline__point--bottom {
  top: initial;
  bottom: 0;
}

.timeline__date--right {
  text-align: right;
  color: #106fb4;
}

.timeline__title {
  margin: 0;
  font-size: 1.15em;
  font-weight: bold;
  color: #391472;
}

.timeline__paragraph {
  line-height: 1.5;
}

.timeline__date {
  color: #106fb4;
}

.titol {
  font-style: italic;
}
              
            
!

JS

              
                
              
            
!
999px

Console