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>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Square+Peg&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600&display=swap" rel="stylesheet">

<div id="main">
  <h1 id="title">Tupac Amaru Shakur</h1>
  <p style="font-family: 'Plus Jakarta Sans', sans-serif;">The man who touched a billion lives</p>
  
<div id="img-background">  
  <div id="img-div">
    <img id="image" src="https://media.pitchfork.com/photos/5a6b93dbec6e1e20e77e840a/1:1/w_320,c_limit/All%20Eyez%20on%20Me.jpg" alt="Tupac-All eyez on me-Album cover">
    <figcaption id="img-caption">That´s the cover of his "All Eyez On Me" Album co-produced by Dr. Dre which made him the undisputed Rap-God of all time!</figcaption>
  </div>
</div>
  
  <div id="tribute-info">
    <h2><em>Life and times of Tupac Amaru Shakur</em></h2>
    <ul>
      <li><strong>June, 16th 1971:</strong> Tupac was born as Lesane Parish Crooks in East Harlem, New York.</li>
      <br>
      <li><strong>1972:</strong> His name got changed to Tupac Amaru Shakur, but we all know him as his alias 2Pac.</li>
      <br>
      <li><strong>1986:</strong> He moved with his mother Afeni Shakur to Balitmore, Maryland, where he visits the Baltimore School for the Arts and started rapping. 2Pac himself recalled this <em>the best times in his life</em>.</li>
      <br>
      <li><strong>1988:</strong> Because of job issues Afeni and her kids moved to the Westcoast, Marin City, California. This he recalled as a turning point in his life when he <em>got of track</em>.</li>
      <br>
      <li><strong>1990:</strong> Tupac joined Digital Underground, an Oakland-based rap group that had scored a Billboard Top 40 hit with the novelty single “The Humpty Dance.”</li>
      <br>
      <li><strong>August, 15th 1991:</strong> Tupac got signed by Interscope Records and shortly after released his debut album <em>2Pacalypse Now</em> with his first solo debut single <a href="https://www.youtube.com/watch?v=j-VUV9VcRAQ" alt="Watch the video to Trapped"><em>Trapped".</em></a></li>
      <br>
      <li><strong>February, 16th 1993:</strong> Tupac released his second studio album <em>Strictly 4 my N.I.G.G.A.Z.</em></li>
      <br>
      <li><strong>1993:</strong> Tupac made his acting debut in John Singleton's movie <em>Poetic Justice</em> alongside Janet Jackson.</li>
      <br>
      <li><strong>December, 1st 1994:</strong> Shakur was acquitted of three counts of sodomy and the associated gun charges, but convicted of two counts of first-degree sexual abuse<br> for <em>forcibly touching the woman's buttocks</em> in his hotel room. Jurors have said the lack of evidence stymied a sodomy conviction.</li>
      <br>
      <li><strong>February 1995:</strong> Tupac was sentenced to 18 months to 4 1⁄2 years in prison.</li>
      <br>
      <li><strong>1994:</strong> Already out of prison Tupac got shot at the Times Square's Quad Recording Studios where he wanted to meet Christopher Wallace (The Notorious B.I.G.) <br>and Sean Combs (Diddy). He was hit with 5 shots, one hit his head but still he survived the attack. After that<br> incident he accused the New York Rapper and his friend the Hip-Hop Mogul that they was setting him up. This was the<br> beginning of the biggest <em>Beef</em> in Hip-Hop history also known as the <em>Eastcoast/Westcoast-Feud</em>. <br>At that point the full extent of this feud was unexpected.</li>
      <br>
      <li><strong>1995:</strong> Tupac was again sentenced to prison for 4 1⁄2 years because of sexual harassment but was released after 11 1⁄2 months. Suge Knight, the owner of Death Row<br> Records, paid $1.4Mio. to release Tupac on bail. During his time in prison he recorded his next album <em>Me Against<br> The World</em> and immediately hit No. 1 on the billboard charts. </li>
      <br>
      <li><strong>1996:</strong> Teamed up with one of Hip-Hop's biggest Producer Dr. Dre Tupac released his most successful double-album <em>All Eyez On Me</em></li>
      <br>
      <li><strong>September, 7th 1996:</strong> After the Tyson vs Seldon fight in Las Vegas Tupac got into a fist fight with Orlando Anderson, a gang member of the Southside Crips. Shortly after that Suge Knight and Tupac left the scene. Standing at a traffic light on Flamingo Road/Koval Lane a car pulled up and shot several times at Suge's car. Suge got hit slightly on his head but Tupac got hit in his chest, arm and hip.</li>
      <br>
      <li><strong>September, 13th 1996:</strong> After a part of Tupac's lung had to be removed he was placed in an induced coma. He never woke up again and died the same day. He was only 25 years old. </li>
    </ul>
  </div>

  <div id="img-caption">
    If you want to learn more about this incredible person you can check some more facts here on his <a id="tribute-link" target="_blank" href="https://de.wikipedia.org/wiki/Tupac_Shakur#Leben">WikiPage</a>
  </div>
</html>  
  
              
            
!

CSS

              
                #main {
  text-align: center;
  background-color: #F7F6F5;
  margin-top: 50px;
  border-radius: 5px;
}

#title {
  padding-top: 30px;
  font-family: 'Square Peg', cursive;
  font-size: 100px;
}
#image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
  padding-top: 20px;
}

#img-caption {
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding-top: 20px;
}

#img-background {
  background-color: white;
  height: 420px;
  width: 1470px;
  margin: auto;
  border-radius: 7px;
}

#tribute-info {
   font-family: 'Plus Jakarta Sans', sans-serif;
   max-width: 600px;
   margin: 0 auto;
}

#tribute-info > ul li {
  text-align: left;
}
              
            
!

JS

              
                // !! 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. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - 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. 

              
            
!
999px

Console