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

              
                <html lang="en"> <!--this set language to English for entire page -->
  <!--This is the heading - should include only the title -->
  <div>
  <main id="main">
  <h1 id="title">The Black Mamba: A Tribute Page</h1>
    </div>
    
    <body>
      
 <!--Title pic and caption: I put a figure here to contain both the picture and the caption -->
    <div>
  <figure id="img-div">
  <img class="center" id="image" src="https://www.teamusa.org/-/media/TeamUSA/Basketball/Bryant_Kobe/bryant_kobe_012620_800x500.png" alt="Kobe Bryant smiling in his Olympic uniform in black and white">
     <figcaption id="img-caption"><q>The <em>most important thing</em> to <em>try</em> and do is <em>inspire</em> other people so that they can try and be <em>great</em> at whatever they <em>want to do</em>.</q></figcaption>
    </figure>
    </div>
   
  <!--Table of Contents-used fieldset to combine all of the menu in one box, c classed ol and changed the font weight to bolden title -->
    <div>
    <fieldset>
    <ol class="Menu">Table of Contents</ol>
    <li><a href="##8: Early NBA Career">#8: Early NBA Career </a></li>
      <li><a href="##24: The Black Mamba">#24: The Black Mamba</a></li>
      <li><a href="#January 26th, 2020: Gone, Not Forgotten">January 26<sup>th</sup>, 2020: Gone, Not Forgotten</a></li>
    </fieldset>
    </div>
      
 <!--Early Career Picture: Used figure to put the picture and caption together, classed first two pictures together in order to center them and make them responsive to screen size change-->  
    <div>
  <figure>
    <h2 id="#8: Early NBA Career">#8: Early NBA Career</h2>
    <img class="center" src="https://backofthejersey.com/wp-content/uploads/2013/09/1996-NBA-Draft-Class.gif" alt: NBA Draft: Class of 1996 title="Top Picks of 1996 NBA Draft">
      <figcaption><i>Left to Right: Marcus Camby, Stephon Marbury, Ray Allen, Kobe Bryant, Shareef Abdur Raheem, Jermaine O'Neal, Steve Nash, Kerry Kittles, John Wallace, Antoine Walker, and Walter McCarty</i></figcaption>
    </figure>
    </div>
  
 <!--Early Career Text: used section in order to group the facts for each section together-->
   <div>
    <section id="tribute-info">
    <ul>
      <li>June 26, 1996: Arguably the greatest draft class of all time, featuring multiple future Hall-of-Famers, takes place in East Ruthersford, NJ. Kobe Bryant is selected 13<sup>th</sup> overall by the Charlotte Hornets. However, the 18 year old prospect is sent to the Los Angeles Lakers for Vlade Divac in a trade that would forever shape the future of the NBA.</li>
      <li>1996-1997: Kobe's first two seasons were challenging as he struggled to see playing time behind the two All-Star guards he was backing up. Despite not getting much playing time, Kobe gained massive popularity, becoming the youngest player ever to start in an NBA game and winning the NBA Slam Dunk Contest.</li>
      <li>1998: In order to give Kobe the opportunity to play, the Lakers traded it's All-Star backcourt of Eddie Jones and Nick Van Exel, and as a result, Kobe establishes himself as one of the elite guards in the game, drawing comparaisons from Michael Jordan.</li>
      <li>NBA Champions 2000-2002: The Lakers hire Phil Jackson as their head coach in 1999 and alongside Shaquille O'Neal, Kobe and the Lakers win 3 straight NBA Titles. 
      <li>2004 NBA Finals: The Lakers lose to the Detroit Piston in 5 games, and this series would be the last time Shaquille O'Neal wears the purple and gold, as he is traded to Miami for Lamar Odom and Caron Butler in the off-season, and Phil Jackson resigns as Head Coach.</li>
      </section>
      </div>
    
  <!--The Black Mamba-->   
      <section>
  <h3 id="#24: The Black Mamba">#24: The Black Mamba</h3>
      <img class="left" src="https://miro.medium.com/max/1023/1*Br_EmXZ-p1z8wQ67YyJyvw.jpeg" alt="Two Kobes">
     <ul>     
      <li>2004-2005: With Shaq and Jackson now gone, Kobe becomes the focal point of the offense and is the the league's 2<sup>nd</sup> leading scorer at 27.6 ppg, however, surrounded by inferior talent, the Lakers miss the playoffs for the first time in a decade.</li>
      <li>2005-2006: Phil Jackson returns as coach and the Lakers make the playoffs behind a season full of accolades and acheivements:
      <ul>
        <li>December 20: 62 points in 3 quarters vs. Dallas</li>
        <li>January 22: Kobe has the 2<sup>nd</sup> highest scoring game off all-time, scoring 81 points against the Toronto Raptors. Click <a href="https://www.youtube.com/watch?v=FeXZY4eVLlo" target="_blank">here</a> to see all 81 points.</li>
        <li>January 2006: Kobe has 4 straight games of 45 points, becoming the first person to do so since 1964. He finshed the month averaging 43.4 ppg, the 8th highest scoring month all-time.</li>
        <li>Kobe finished the season averaging 35.4 ppg, winning the scoring title, and finished 2<sup>nd</sup> in 1<sup>st</sup> place MVP voting behind Steve Nash. Click <a href="https://www.youtube.com/watch?v=Ids59fs9jyA" target="_blank">here</a> to see highlights from that season.</li>
      </ul>
    <li>2007-2008: The Lakers trade Kwame Brown to the Memphis Grizzlies for Pau Gasol and immediately the Lakers become championship contenders. Kobe wins his first MVP award. The Lakers eventually meet up with the Boston Celtics in the NBA Finals and lose in 6 games.</li>
    <li>2009-2010: The Lakers go 57-25 to finish 1<sup>st</sup> in a loaded Western Conference in which all 8 playoff teams won at least 50 games.
    <li>2010-2016: After their back-to-back championships, Kobe and the Lakers struggled as the roster got older and ravaged by injury, despite their best efforts to retool and surround Kobe with the right teammates and coaches. Kobe himself suffered a myriad of injuries, including a season-ending Achilles tear in 2013. The Lakers would reach the playoffs a few times, but never made a serious title run.
       <li>April 13<sup>th</sup>, 2016: After a season full of admiration and celebration, Kobe played his final game at Staples Center in front of a sold-out audience. After a shaky start, the Lakers Legend scored 60 points in his finale, the most ever by a player in his last game.
       </section>
        <br>
        <br>
    <div>       
      
        <h4 id="January 26th, 2020: Gone, Not Forgotten">January 26<sup>th</sup>, 2020: Gone, Not Forgotten</h4>
        <p id="tribute info">January 26<sup>th</sup> was a day that will forever be known as the day we lost a legend. The world wept as we learned that Kobe and his daughter Gianna, along with seven others, lost their lives in a tragic helicopter accident. Since then, countless tributes have been offered in their memory, including the 2020 NBA Championship won by the Los Angeles Lakers led by LeBron James. For more information on his life, please visit his <a href="https://en.wikipedia.org/wiki/Kobe_Bryant" target="blank">Wikipedia</a> page. </div>
          
        <br>
          <br>
          
<div><img class="center" src="https://i.insider.com/5e594047fee23d68f73ba9d7?width=1100&format=jpeg&auto=webp"></div>
     
      
    
       </body>
</main>
      </html>
              
            
!

CSS

              
                h1  {
  text-align: center;
  text-decoration: underline;
}

h2, h3, h4 {
  text-align: center;
  text-decoration: underline;
  font-size: 24px;
}

figure {
  text-align: center;
}

fieldset { 
  text-align: center;
  text-decoration: underline;
  weight: black;
  width: 400px;
  margin: auto;
}

.Menu {
  font-weight: bolder;
}


.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

.left{
  float: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: 300px;
  padding: 0px 40px 0px 20px;
  
}

.right {
  float: right;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: 300px;
  padding: 0px 40px 0px 20px;
}

body {
  width: max-width;
  height: max-height;
  display: block;
  position: relative;
  background: rgb(255,255,153);
}




              
            
!

JS

              
                
              
            
!
999px

Console