Pen Settings



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


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


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.


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.


                <script src=""></script>

<main id="main">
<h1 id="title"> Kobe Bryant</h1>
<p> The man who inspired a generation of achievers. </p>
<figure id="img-div">
  <img id="image"
    alt= "kobe bryant smiling"/>     
 <figcaption id="img-caption">
Kobe Bryant smiles for the camera during a photoshoot for GQ in 2001.
  <section id="tribute-info">
    <h3 id="headline"> Here's a time line of Kobe Bryant's life:</h3>
    <li><strong>1978</strong> - Kobe Bryant is born in Philadelphia, Pennsylvania</li>
    <li>   <strong>1996</strong>- Bryant finishes his high school career as the all-time leading scorer in the history of southeastern Pennsylvania basketball.</li>
    <li><strong>1996-1997</strong> - Bryant becomes the youngest player in NBA history as he begins his pro career at 18 years, 2 months and 11 days.</li>
    <li><strong>1998</strong> - At 19, he becomes the youngest starter ever in his first NBA All-Star Game.</li>
    <li><strong>1999-2000</strong> - Bryant wins his first NBA title as the Lakers beat the Indiana Pacers in six games.</li>
    <li><strong>2000-2001</strong> - The Lakers storm to their second straight NBA title, beating the Phildelphia 76ers in five games in the Finals.</li>
    <li><strong>2001-2002</strong> - The Lakers win their third consecutive NBA title, sweeping the New Jersey Nets.</li>
    <li><strong>2004</strong> - Playing in their fourth Finals in five eyars, the last Kobe-Shaw Lakers team loses to Detroit in five games.</li>
    <li><strong>2008</strong> - Bryant wins a gold medal at the Beijing Olympics as the member of the U.S. men's basketball team.</li>
    <li><strong>2009</strong> - Bryant wins his fourth NBA title and is the named the finals MVP as the Lakers beat the Orlando Magic in five games.</li>
    <li><strong>2010</strong> - Bryant wins his fifth NBA title and is named the Finals MVP as the Lakers beat the Celtics in seven games.</li>
    <li><strong>2012</strong> - Bryant wins his second Olympic gold medal as a member of the U.S. men's basketball team at the 2012 Games in London.</li>
    <li><strong>2013</strong> - Bryant, 35 and still recovering from what for many athletes is a career-ending injuiry, signs a two-year contract extension worth 48.5 million that runs through the 2015-2016 season. </li>
    <li><strong>2016</strong> - He scores 60 points in his final game, helping the Lakers defeat the Utah Jazz 101-96.</li>
    <li><strong>2018</strong> - Bryant wins an Academy Award for best animated short film for "Dear Basketball."
    <li><strong>2020</strong> - Kobe, 41, is among nine people who die in a helicopter crash in Calabasas. One of his daughters, 13-year-old Gianna "Gigi" Bryant, was among those to perish in the crash as well.</li>
  <a id="tribute-link" 
     target="_blank"> wikipedia page</a>.



                html {font-size: 10px;}

$yellow: #D3D3D3;

.title {
  color: blue;

body {
  background-color: $yellow;
  font-family: Palatino;
  font-size: 2rem;
  text-align: center;
  color: #000000;
  margin: 1;

h1 {font-size: 5rem;
text-align: center;}

@media(max-width: 460px){
  #main {
    margin: 0;
img {max-width: 50%;
height: auto;
  display: block;
  margin: auto;

#img-div {
  background: white;
padding: 50px;
margin: 1;}

#img-caption {
  margin: 25px 0 10px 0;
padding: 50 ppx;}

#headline {margin: 50px 0;
text-align: center;}

ul {max-width: 550px;
margin: 0 auto 50px auto;
text-align: left;
line-height: 1.6;}

li {margin: 20px 0;}

a {color: black}