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>
<head>
</head>
<div id="main">
<h1 id="title">Royce Gracie</h1>

<div id="img-div">
<p id="img-caption">The man who changed the face of MMA</p>
<img src="https://img.bleacherreport.net/img/images/photos/001/904/680/roycegracie1_crop_north.jpg?1348521330&w=630&h=420" alt="This is Royce Gracie" id="image">
</div>

<div id="tribute-info">
<p>Royce Gracie was born on 12 December 1966  is a Brazilian semi-retired professional mixed martial artist, UFC Hall Of Famer  and Gracie Jiu Jitsu  practitioner. A member of the famed Gracie Family, he is considered to be one of the most influential figures in the history of MMA.
Gracie gained fame for his success in the Ultimate Fighting Championship. Between 1993 and 1994, he was the tournament winner of UFC 1, UFC2, UFC4, and fought to a draw with Ken Shamrock in the championship match in the Superfight at UFC 5.  Gracie popularized Gracie Jiu Jitsu and revolutionized mixed martial arts  with his results contributing to the movement towards grappling and ground fighting in the sport. Many people consider him as one of the greatest mixed martial artists of all time. 
</p>

<h3>Championships and accomplishments</h3>
<hr>
<h3>Mixed martial arts</h3>

  <h4>Ultimate Fighting Championship</h4>
 
<ul>
  <li>UFC Hall of Fame (Inaugural inductee, part of the pioneer wing, class of 2003)
</li>
  <li>UFC 1 Tournament Championship</li>
  <li>UFC 2 Tournament Championship</li>
  <li>UFC 4 Tournament Championship</li>
  <li>UFC viewers award choice</li>
  <li>First tournament champion in UFC history
</li>
  <li>Longest fight in UFC history (36 minutes) - vs Ken Shamrock at (UFC 5)
</li>
  <li>Most tournament wins in UFC history (Eleven)
</li>
  <li>Most tournaments won in UFC history (Three)</li>
  <li>Most fights in a single night in UFC history (Four) - tied with (Patrick Smith)
</li>
</ul>
</div>
<footer>
 <a href="https://en.wikipedia.org/wiki/Royce_Gracie" target="_blank"  id="tribute-link">Click here for more info</a>
</footer>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</div>
</html>
              
            
!

CSS

              
                
#image{
display: block;
border-radius: .5em ;
width: 100%;
height: auto;
box-shadow: 2px 2px #eaecf0;
max-width: 100%;
position: relative;
}
#img-div {
text-align: center;
top: 10px;
width: 100%;
height: auto;
position: relative;
}

body{

background-color: black;
color: white;
box-shadow: 5px 5px 5px 5px;
}

h1{
background-color: white;
color: black;
text-align: center;
font-size: 50px;
font-family: cambria;
border: solid;
text-shadow: 5px 5px 5px red;
margin: 20px;
padding: 20px;
box-shadow: 5px 5px 5px red;
border-radius: 20px;
}

#img-caption{
text-align: center;
font-size: 25px;
font-family: cambria;
text-shadow: 5px 5px 5px red;

}


#tribute-info{
margin-left: 20px;
margin-right: 20px;
}


footer{

font-size: 20px;
margin-left: 20px;
margin-bottom: 15px;

}


              
            
!

JS

              
                
              
            
!
999px

Console