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>

<!DOCTYPE html>
<html lang="en">
<body id="main">
   <div class="container">
    <div class="box1">
     <nav  id="title">
     <h1>Pac's Life</h1>
       <h2>From the Ghetto to Rap legend</h2>
       <figure id="img-div">
 <img id="image" src=""alt="Footage of Tupac giving an interview">
<figcaption id="img-caption">
"MTV's interview with Tupac Shakure"
    <div id="tribute-info">
     <p>Tupac Amaru Shakur (1971-1996) is one of the most popular artists in history, with over 75 million records sold worldwide. He was a rapper, actor, activist, thug, Poet, rebel, visionary, though his recording career lasted just five years. More than half of his eleven studio albums sold over three million copies in the U.S. and both 1996’s All Eyez on Me and his Greatest Hits collection have been certified diamond, surpassing the ten-million mark and placing them among the top-selling albums of all time.</p>
        <li>At the age of 17 he hooked up with the popular Bay Area rap crew Digital Underground, starting as a roadie and back-up dancer, and eventually working his way up to contributing a verse to the 1991 hit “Same Song.”</li>
  <li>Tupac was signed to Interscope Records by Tom Whalley (who still oversees his estate today), and his first solo album, 2Pacalypse Now, arrived a few months later, generating both acclaim and controversy.</li>
   <li>In 1993, Strictly 4 My N.I.G.G.A.Z., including the hits “Keep Ya Head Up” and “I Get Around,” became his first platinum release.
  Things got even bigger in 1996 with All Eyez on Me, Tupac’s best-selling album, which spawned five singles, including two Number One hits, “California Love” and “How Do U Want It.” At the height of his phenomenal success, Tupac’s life was cut short on September 13, 1996 when he was murdered in a drive-by shooting in Las Vegas at the age of 25.</li>
  <li>Nearly a decade after his final album, appreciation has only deepened for the lasting impact of Tupac’s music. His story was told in 2003’s Academy Award-nominated documentary Tupac: Resurrection. The Library of Congress added “Dear Mama” to the National Recording Registry in 2009, and even the <u>Vatican featured “Changes”</u> on its official playlist.</li>
      <div class="container2"><p>For more information about Tupac Shakure please click on the link <a  id="tribute-link" target="_blank"  href=""></a></p>
<!--# { -520px -500px 500px -600px;;
800px 700px 800px 700px;
    position: relative;
    font-family: sans-serif;
    font-size: 30px;
    color: red;
    left: 500px;
    bottom: 120px; 180px 20px 10px 20px

  top: 350px;
  left: 190px;

  background-image: url("");
  background-repeat: no-repeat;
  background-position: 50% 30%;
  background-size: 33%;-->



                <!DOCTYPE html>
<style lang="en">
#main {
  margin: 0px;     
#title {
  font-style: italic;
  font-size: 40px;
  text-align: center;
  line-height: 1.5em;
  font-family: serif, tahoma;
  line-height: 1.6em;
  font-size: 16px;
  text-align: left;
  font-size: 18px;
  font-weight: bold;
  margin: 0px 50px;
  font-style: italic;
  color: blue;
  text-decoration: none;
  color: red;
.box1 {
  width: 70%;
  box-shadow: 0 40px 20px;
  border: 5px black solid;
  padding: 10px;
  margin: auto;
  position: relative;
  justify-content: center;
  text-align: center;
#image {
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  margin-top: -10px;



                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

  - Select the project you would 
    like to complete from the dropdown 
  - Click the "RUN TESTS" button to
    run the tests against the blank 
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments.