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

              
                <!DOCTYPE html>
<html>
<head>
  <title> Muhammad Ali Tribute Page </title>
  <link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Bevan|Lemon&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css?family=Dancing+Script&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css?family=Exo&display=swap" rel="stylesheet">
  
<main id="main">
  <h1 id="title">Muhammad Ali</h1>
   <p>         "I am the greatest, I said that even before I knew I was."</p>
  </head>
   <figure id="img-div">
    <img
      id="image"
      src="https://www.jakpost.travel/wimages/large/145-1453883_hq-muhammad-ali-wallpapers-muhammad-ali-white-background.jpg"
         alt=""
         class="center"
         />
     <figcaption id="img-caption">Muhammad Ali standing over oppenent in victory after landing finishing blow
       </figcapton>
  </figure>
  <section id="tribute-info">
 <h2>How he became the "greatest of all times":<h2>
   <ul>
       <li><u>18 years old</u> - Cassius Clay entered the 1960 Olympic games in Rome, Italy and won the gold medal by beating Zbigniew Pietrzykowski, of Poland, by decision. </li>
     <li><u>22 years old</u> - Clay faught Sonny Liston for the first and shocked the world by beating via technical knockout and becoming one of the youngest world heavyweight champions in history. </li>
     <li><u>22 years old</u> - Clay made the announcement to the world with the help of Elijah Muhammad that he changed his name to Muhammad Ali. </li>
     <li><u>25 years old</u> - Ali refused enlistment in the U.S. army citing moral objections to the war in Vietnam which led to him being barred from boxing and his title being stripped. </li>
     <li><u>28 years old</u> - Ali had his boxing licence reinstated and became a polarising figuire to white Americans but a hero to African Americans and a pivotal figuire in the civil rights movement.  </li>
     <li><u>29 years old</u> - Ali challenged the current world heavyweight champion Joe frazier which became the biggest fight in history at the time, Ali lost by unanimous decision in 15 rounds, this was the first defeat of his career. </li>
     <li><u>29 years old</u> - The U.S. Supreme Court reversed Ali’s conviction he recieved when he was 25 years old for refusing to fight in the war.  </li>
     <li><u>32 years old</u> - Ali and Frazier had a rematch of there historic bout three years earlier and Ali avenged his only defeat within 12 rounds.   </li>
     <li><u>32 years old</u> - Ali took on the biggest in ring challenge of his career by agreeing to fight the undefeated George Foreman and the underdog Ali won in thrilling fashion in the eighth round. The fight is famously remembered as the "Rumble in the jungle".   </li>
     <li><u>33 years old</u> - Ali faught Frazier for the last time in thier rubber match and Ali was victorious by technical knockout in the 14th round. The fight was another classic in boxing history named the "Thrilla in Manila"  </li>
    <li><u>36 years old</u> - Ali would face and lose to olympic champion Leon spinks by 15 round split decision. Later in year Ali would avenge this loss and become the first three time world heavyweight champion </li>
      <li><u>37 years old</u> - Ali retired from professional boxing for the first time  </li>
      <li><u>42 years old</u> - Ali had symptoms of the degenerative brain disease Parkinsons in prior years and was officially diagnosed   </li>
      <li><u>54 years old</u> - Ali lights the Olympic cauldron during the Opening Ceremony for the Atlanta 1996 Olympic Games. He also received a replacement gold medal for the one he won in 1960  </li>
     <li><u>74 years old</u> - Ali dies in Phoenix, after being hospitalized with respiratory issues.  </li>
     <h3>The source used in this tribute page can be found
       <a id="tribute-link"
          href="https://www.teamusa.org/News/2016/June/04/A-Timeline-Of-Muhammad-Alis-Life-And-Career"
          target="_blank"
          >here</a>.
     </h3>
   </section>
   </main>
    </html>
       
       
     
       
              
            
!

CSS

              
                
main{
width: 1225px;
height: 2650px;
border: solid black 19px;
}}
Body{  font-family: Exo;
  font-size: 30px;
  line-height: 1.5;
  color: #333;
  margin: 0;
  text-align: center;
}
.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}
h1{ 
  text-align: center;
font-family: Lobster;
  font-size: 70px;
}
figcaption{text-align: center;
font-size:17px;
}
img{width: 50%;
  text-align: center;

}
p{
  font-family:Dancing Script;
    font-size:20px;
  text-align: center;
  font-style:italic;
}
  #img-div {
  background: white;
  padding: 10px;
  margin: 0;
  }
  h2{
    text-align: center; 
    font-family: Lobster;
    font-size:40px;
  }
  ul{
    font-family: exo;
    Font-size:18px;
    max-width: 550px;
  margin: 0 auto 70px auto;
  text-align: left;
  line-height: 1.9;
}
h3{ 
font-family: Arial;
Font-size:17px;
  position: relative;
  top: 140px;
}
              
            
!

JS

              
                
              
            
!
999px

Console