Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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.


Auto Save

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.


                <header class="text-center">
  <h1 id="title">Bob Marley</h1>
  <h2>The Man, The Legend (1945 - 1981)</h2>

<main id="main">
  <div id="img-div" class="text-center">
    <img id="image" src="" alt="Graphic representation of Bob Marley's portrait">
    <p id="img-caption">Graphic representation of Bob Marley's portrait</p>

  <div id="tribute-info" class="text-center">
    <h2>Bob Marley's Key Dates</h2>
      <li><strong>February 6 1945:</strong> Robert Nesta Marley is born in Nine Miles, St Ann's, Jamaica, the son of a middle-aged white British naval officer and teenage Jamaican mother.</li>
      <li><strong>1962:</strong> Records his first song in Kingston, Judge Not, recorded by legendary reggae producer Leslie Kong.</li>
      <li><strong>1963:</strong> He forms the original Wailers - then known as the Teenagers - with Peter Tosh, Bunny Livingstone, Junior Braithwaite, Beverley Kelso and Cherry Smith.</li>
      <li><strong>1963 - 1966:</strong> The band, who change their name to Bob Marley and the Wailers, record over 70 songs for producer Coxsone Dodd, including many tracks Marley would re-record to international acclaim in the 1970s.</li>
      <li><strong>1966:</strong> Marley marries soul singer Rita Anderson, a member of The Soulettes and later the I-Threes, with whom he will have five children. Shortly after marrying, he moves to the US to work in a factory.</li>
      <li><strong>1969-71:</strong> The band record with noted Jamaican producer Lee "Scratch" Perry. This period includes many classic tracks such as Small Axe, My Cup and Sun is Shining.</li>
      <li><strong>1971:</strong> Marley forms his own record label, Tuff Gong.</li>
      <li><strong>1973:</strong> Bob Marley and the Wailers sign to Chris Blackwell's Island Records. They release the album Catch a Fire, the first to make a major impression in music markets outside the Caribbean. Livingston and Tosh, however, leave the band to embark on solo careers.</li>
      <li><strong>1974:</strong> Eric Clapton covers The Wailers' I Shot the Sheriff and takes it into the UK top 10, further adding to their reputation.</li>
      <li><strong>1975:</strong> The band release the seminal album Natty Dread, which contains their landmark song No Woman, No Cry. Marley becomes a star all over the globe.</li>
      <li><strong>December 3, 1976:</strong> Marley and wife Rita are injured in an assassination attempt in Jamaica. Days later, he takes to the stage with his arm in a sling.</li>
      <li><strong>July 1977:</strong> Marley breaks one of the toes on his right foot in a football accident in Paris. Doctors find cancerous cells and remove them.</li>
      <li><strong>1978:</strong> He holds the One Love Peace Concert in Kingston, bringing the leaders of Jamaica's rival political factions to the stage to shake hands.</li>
      <li><strong>1980:</strong> Marley and The Wailers kick off the year with a concert in the newly-independent African nation of Zimbabwe. Later in the year, while jogging in New York's Central Park, Marley collapses. Doctors discover cancer has spread to his lungs, liver and brain.</li>
      <li><strong>May 11, 1981:</strong> Marley dies in hospital in the US, aged 36.</li>
      <li><strong>May 1986:</strong> The Marley Museum is opened in Kingston, on the site of his former home.</li>
      <li><strong>1990:</strong> Marley's birthday is declared a national holiday in Jamaica.</li>
      <li><strong>1994:</strong> Bob Marley is posthumously admitted into the Rock and Roll Hall of Fame.</li>
  <div id="quote">
    <blockquote cite="">
        “Life is one big road with lots of signs. So when you riding through the ruts, don’t complicate your mind. Flee from hate, mischief and jealousy. Don’t bury your thoughts, put your vision to reality. Wake Up and Live!”
      <cite>-- Bob Marley</cite>

<footer class="text-center">
        <h3>Follow the link for further reading on <a id="tribute-link" href="" target="_blank">Bob Marley's Life and Legacy</a>.             </h3>



                html {
  font-family: 'Inconsolata', monospace;
  background: #EDE8ED;
  color: #262729;

.text-center {  
  text-align: center;

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70%;
  max-width: 1000px;
  margin: auto;

  margin-bottom: 4em;

h1 {
  font-size: 3em;

#img-div {
  margin-bottom: 2.5em;
  background-color: #ccc8cc;
  border-radius: 20px

#image {
  display: block;
  height: auto;
  max-width: 100%;

#img-caption {
  font-style: italic;

#tribute-info {
  background-color: #ccc8cc;
  border-radius: 20px;

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;

li {
  margin: 1.5em;
  text-align: justify;
  font-size: 1.1em;

#quote {
  font-size: 1.1em;
  background-color: #ccc8cc;
  border-radius: 20px;
  margin-top: 2.5em;
  margin-bottom: 3em;
  text-align: justify;

footer {
    margin-bottom: 3em;

@media only screen and (max-width: 640px) {
  #main {
    width: 90%;
    font-size: 100%;