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

              
                <!-- 
  This is a work in progress tribute page that I am building for the 
  freeCodeCamp 'Reactive Web Design' certification.
-->
<div id="main">
  <div id="title">
    <p>Joey Dunlop</p>
  </div>
  <section id="tribute-info">
    <h1>Becoming a Motorcycling Icon</h1>
    <p>
      William Joseph Dunlop was a Northern Irish motorcycilist from Ballymoney, born Febuary 25th 1952. Joey's career racing motorcycles is beyond impressive. He began racing in 1969 and up until 2000 racked up 26 Ilse of Man TT wins, 13 wins at the North West 200, and over 160 other wins elsewhere. This extensive list of achivements in motorycle racing has not been surpassed by anyone else since- and may never be.
    </p>
    <div id="img-div">
      <img alt="Photo of Joey Dunlop" id="img" src="https://www.causewaycoastandglens.gov.uk/uploads/general/32._Joey_Dunlop.jpg">
      <p id="img-caption">Joey Dunlop</p>
    </div>
    <h1>Racing Timeline</h1>
    <ul>
      <li>1976 Joey raced for the first time in England, at Oulton Park. The Armoy Armada became so popular that sponsor John Rea bought a bus to bring fans from the Railway tavern, Ballymoney, to race meetings. Joey competed at the Isle of Man TT, winning a Bronze Replica for best newcomer.</li>
      <li>1977 Won his first Isle of Man TT race, the Jubilee Classic.</li>
      <li>1979 First victories at the North West 200, winning the Superbike races and also at the Ulster Grand Prix in the 500cc and Superbike races.</li>
      <li>1982 Joey won the TT Formula One World Motorcycle Championships which he retained until 1986. He dominated the championship during the 1980s, also finishing 3rd in 1980 & 1981 and runner-up in 1987 & 1988.</li>
      <li>1985 Another astonishing season which included a hat-trick of wins at both the Ulster Grand Prix and the TT, a double victory at the NW200 and Formula One wins in Holland, Portugal, Spain and Germany. Joey's TT victories were all the more remarkable as he narrowly missed drowning when the fishing boat taking him to the Isle of Man was sunk.</li>
      <li>1996 Joey was honoured with an OBE in recognition of his humanitarian deeds. He drove alone across Eastern Europe to take aid to Romania, Bosnia and Albania.</li>
      <li>2000 Another triple win at the TT brought Joey's tally to 26 and, in recognition of this astonishing feat, he was presented with the Manx Sword of State.</li>
    </ul>
    <div id="img-div">
      <img id="img" alt="Photo of Joey Dunlop preparing to race" src="https://upload.wikimedia.org/wikipedia/commons/8/87/JoeyDunlopTT92.jpg">
      <p id="img-caption">Dunlop preparing for the Senior TT in 1992</p>
    </div>
    <h1>The Last Lap</h1>
    <p>
      On July 2nd, 2000, Joey Dunlop was killed while racing in Estonia. He will go on living in the hearts of fans as the 'King of the Roads'. If you would like to know more about Joey Dunlops life, you can read about it <a id="tribute-link" href="https://en.wikipedia.org/wiki/Joey_Dunlop#:~:text=In%202016%20he%20was%20voted,by%20fans%20of%20motorcycle%20racing." target="_blank">here</a>
    </p>
  </section>
  <div id="footer">
    <p>Made by Carsen Weinzetl | For FCC Responsive Web Design Certification</p>
  </div>
</div>
              
            
!

CSS

              
                /* Desktop View / Larger VW */
html {
  background-color: white;
}
#main {
  display: grid;
  margin: 30px 15%;
  font-family: Tahoma;
}
#title {
  background-color: #3066be;
  text-align: center;
  font-size: 90px;
  color: #e0e0e0;
}
#tribute-info {
  background-color: #e0e0e0;
  font-size: 20px;
}
#footer {
  background-color: #3066be;
  color: #e0e0e0;
  text-align: center;
}
#img {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  display: grid;
}
#img-caption {
  font-size: 15px;
  text-align: center;
}
#tribute-link {
  color: #3066be;
}
p {
  margin: 25px 7%;
  line-height: 140%;
}
h1 {
  margin: 3% 0% 2% 5%;
  font-size: 30px;
  font-family: Tahoma;
}
li {
  margin: 25px 7%;
  line-height: 140%;
}
/* Mobile view / Smaller VW */
@media (max-width: 1000px) {
  #main {
    display: grid;
    margin: -10px;
  }
  #title {
    background-color: ;
    text-align: center;
    font-size: 70px;
  }
  #body {
    background-color: lightgray;
  }
  #footer {
    background-color: #3066be;
    color: #e0e0e0;
    text-align: center;
    margin-bottom: -8px;
  }
  #img {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: grid;
  }
  #img-caption {
    font-size: 15px;
    text-align: center;
  }
  #tribute-link {
    color: #3066be;
  }
  p {
    margin: 10px;
  }
  h1 {
    margin: 10px;
    font-size: 30px;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console