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

              
                  <div id="main">
    <div class="card">
      <header>
        <h1 id="title">Kobe Bryant</h1>
        <h7>
          <i>
            -
            <b>
              "The most important thing is to try and inspire people so that
              they can be great in whatever they want to do".
            </b>
          </i>
        </h7>
      </header>
      <div id="img-div">
        <img id="image" src="https://firebasestorage.googleapis.com/v0/b/pomodoro-1592f.appspot.com/o/kobe.jpg?alt=media&token=75d032c2-fe39-4ab7-ab36-5175e71947f9" />
        <figcaption id="img-caption">
          Kobe Bryant was one of the biggest names in the history of the NBA
        </figcaption>
      </div>
    </div>

    <div class="timeline">
      <h2>
        Timeline of Champ
      </h2>

      <ul id="tribute-info">
        <li>
          <b>1996</b> - Finishes his high school career as the all-time
          leading scorer in the history of southeastern Pennsylvania
          basketball.
        </li>
        <li>
          <b> 1996</b> - USA Today names Bryant the National High School
          Player of the Year and he wins the Naismith Player of the Year.
        </li>
        <li>
          <b>1997</b> - Wins the All-Star Weekend slam dunk competition, but
          does not play in the All-Star game.
        </li>
        <li>
          <b>1998</b> - Bryant is the youngest starter, at 19, in his first
          All-Star game.
        </li>
        <li>
          <b>2002</b> - First of four times being named All-Star MVP. He's
          also named in 2007, 2009 and 2011.
        </li>
        <li><b>2008</b> - Wins the NBA regular season MVP award.</li>
        <li>
          <b>2010</b> - For the second year in a row is named the NBA Finals
          MVP.
        </li>
        <li>
          <b>2017</b> - The Lakers retire Bryant's jersey numbers, No. 8 and
          No. 24, during a ceremony at halftime.
        </li>
        <li>
          <b>2018</b> - Wins an Academy Award for best short animated film for
          "Dear Basketball."
        </li>
        <li>
          <b>2020</b> - Plane crashed in heavy fog, killed retired NBA
          basketball player Kobe Bryant, his 13-year-old daughter Gianna
        </li>
      </ul>

      <div>
        <h4>
          If you have time, you should read more about this incredible human
          being on his
          <a id="tribute-link" href="https://en.wikipedia.org/wiki/Kobe_Bryant" target="_blank">
            Wikipedia</a>
          entry.
        </h4>
      </div>
    </div>
  </div>
              
            
!

CSS

              
                #main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#image {
  width: 100%;
  max-width: 100%;
  height: auto;
}

h1 {
  font-size: 40px;
  font-weight: 800;
}
h7 {
  margin: 0px 0px 10px 0px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

html * {
  font-family: Arial, Helvetica, sans-serif;
  color: #4f5a65;
}

#img-div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#img-caption {
  margin: 20px;
}

.card {
  margin: 0px 3% 3% 3%;
  box-shadow: 15px 10px 10px #696e8c;
  background-color: rgb(237, 239, 240);
}

.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#tribute-info {
  align-self: center;
  font-stretch: condensed;
  letter-spacing: 1px;
}

ul {
  line-height: 2;
}

              
            
!

JS

              
                
              
            
!
999px

Console