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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <main id="main">
  <header>
    <h1 id="title">Kobe Bryant</h1>
    <h2>The Black Mamba</h2>
  </header>
  <figure id="img-div">
    <img id="image" src="http://www.calisportsnews.com/wp-content/uploads/2015/05/CFoPk4QXIAE1c0u.png" alt="Koby Bryant playing">
    <figcaption id="img-caption">Kobe Bryant with 5 NBA's trophies</figcaption>
  </figure>
  <section id="tribute-info">
    <h3>Here's a timeline of Kobe Bryant's life:</h3>
    <ul>
      <li><time>1978</time> - Born in Philadelphia</li>
      <li><time>1996</time> - NBA Draft</li>
      <li><time>1997</time> - Participated in the Rookie Challenge and won the 1997 Slam Dunk Contest</li>
      <li><time>1998</time> - Runner-up for the NBA's Sixth Man of the Year Award and youngest NBA All-Star starter in NBA history</li>
      <li><time>2000</time> - Won the first NBA</li>
      <li><time>2001</time> - Won the second NBA</li>
      <li><time>2002</time> - Won the third NBA</li>
      <li><time>2006</time> - Change the shirt's number to 24</li>
      <li><time>2007</time> - Earn MVP (Most Valuable Player)</li>
      <li><time>2009</time> - Earn the second MVP</li>
      <li><time>2010</time> - Earn the third MVP</li>
      <li><time>2012</time> - Won the London Olympics</li>
      <li><time>2013</time> - Achilles tendon injury</li>
      <li><time>2016</time> - Last NBA game</li>
      <li><time>2020</time> - Death in Californa</li>
    </ul>
      <blockquote cite="https://www.inc.com/marcel-schwantes/15-kobe-bryant-quotes-from-his-legendary-career-that-will-inspire-you.html">When you make a choice and say, 'Come hell or high water, I am going to be this,' then you should not be surprised when you are that. It should not be something that is intoxicating or out of character because you have seen this moment for so long that ... when that moment comes, of course it is here because it has been here the whole time, because it has been in your mind the whole time.<br><p>--Kobe Bryant</p></blockquote>
  </section>
  <h4>If you have time, you should <a id="tribute-link" href="https://en.wikipedia.org/wiki/Kobe_Bryant" target="_blank">read more</a> about this incredible human being.</h4>
</main>
              
            
!

CSS

              
                #main {
  background: #e6e6e6;
  border: 10px solid #e6e6e6;
  border-radius: 5px;
}

#title {
  text-align: center;
  color: #FDB827;
  background: #542583;
  margin: 20px 200px;
}

#title {
  max-width: 80%;
  display: block;
  margin: 0 auto;
}

h2 {
  display: block;
  background: #542583;
  max-width: 80%;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  color: #FDB827;
}

h3 {
  text-align: center;
  margin-top: 70px;
}

#img-div {
  background: #FDB827;
  padding: 12px;
  margin: 10px;
}

#image {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

#img-caption {
  margin: 15px 0px 5px 0px;
  text-align: center;
}

#tribute-info {
  text-align: center;
}

time {
  font-weight: bold;
}

ul {
    max-width: 600px;
    margin: 50px auto 50px auto;
    text-align: left;
    list-style-type: none;
}

li {
  margin-bottom: 15px;
}

blockquote {
  display: block;
  margin: 20px auto 20px auto;
  font-style: italic;
  max-width: 600px;
  text-align: left;
}

p {
  text-align: right;
  margin-bottom: 50px;
}

h4 {
  text-align: center;
}
              
            
!

JS

              
                
              
            
!
999px

Console