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

              
                <h1 id="title">Jeff Astle</h1>
<p id="king"><strong>The King of The Hawthorns</strong></p>
<div id="img-div">
  <img id="image" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/4e/Jeff_Astle_Gates.jpg/330px-Jeff_Astle_Gates.jpg" alt="Astle Gates located at The Hawthorns"></a>
  <img-div id="img-caption"> <small><cite>Astle Gates Located Outside of The Hawthorns, Home of West Bromwich Albion Football Club</cite></small> </img-div>
</div>

<main id="main">
  <h2 id="summary"> Quick Summary </h2>
  <div id="tribute-info" class="tribute-info">
    <p>Jeffrey Astle (13 May 1942 – 19 January 2002) was an English professional footballer who played the majority of his career as a centre-forward for <a href="https://en.wikipedia.org/wiki/West_Bromwich_Albion_F.C." target="_blank"> West Bromwich Albion </a>. Nicknamed "the King" by the club's fans, he played 361 games for them and scored 174 goals. He also won five caps for England without scoring.</p>
    <p id="p1"> Jeff Scored most of his goals with his head, this would later come to play a part in his tragic death</p>
  </div>

  <h3 id="career"> Football Career </h3>

  <div id="stat1" class="stats">
    <p>
      Jeff Started his proffesional career at the age of 17 when he signed for <a id="notts-county" href="https://en.wikipedia.org/wiki/Notts_County_F.C." target="_blank">Notts County </a>. He signed for West Brom in 1964 for a fee of £25,000 scoring 174 goals in 361 games. This included the only goal in West Brom's Famous <a href="https://en.wikipedia.org/wiki/1967%E2%80%9368_FA_Cup" target="_blank"> F.A. Cup win </a> over <a href="https://en.wikipedia.org/wiki/Everton_F.C." target="blank"> Everton F.C. </a> in the 1968 cup final. Jeff managed to score in every round of the competition. A remarkable feat! </p>
  </div>

  <div id="stat2" class="stats">
    <p>
      Two years later, Astle scored in Albion's 2–1 defeat by <a href="https://en.wikipedia.org/wiki/Manchester_City_F.C." target="_blank"> Manchester City </a> in the <a href="https://en.wikipedia.org/wiki/Football_League_Cup_Final_1970" target="_blank"> League Cup final </a> , becoming the first player to score in the finals of both of the major English cup competitions at Wembley. He had already scored in the first leg of the 1966 League Cup Final four years previously, but that was at <a href="https://en.wikipedia.org/wiki/West_Ham_United" target="_blank"> West Ham </a> United's <a href="https://en.wikipedia.org/wiki/Boleyn_Ground" target="_blank"> Upton Park. </a> </p>

  </div>

  <div id="stat3" class="stats">
    <p>At the height of Astle's Albion career, the words "ASTLE IS THE KING" appeared in large white letters on the brickwork of Primrose Bridge, which carries Cradley Road over a canal in Netherton, in the heart of the Black Country. The bridge quickly became known locally as "the Astle Bridge".  </p>
  </div>
  <div id="stat4" class="stats"> 
    <p> When the council removed the letters, they re-appeared a few days later. Following Astle's death in 2002, a campaign was launched to have the bridge officially named in his honour, but this has so far been rejected over fears of vandal attacks by supporters of rival teams, as the area also has many Wolverhampton Wanderers fans </p>
  </div>

</main>
              
            
!

CSS

              
                html {
  font-family: Copperplate, fantasy;
  font-size: 20px;
  background-color: #002f68;
}
@media (max-width: 768px) {html::-webkit-scrollbar {
  scrollbar-width: 2px;
  }}
h1 {
  text-shadow: 2px 2px 5px black;
  height: auto;
  color: silver;
  width: 700px;
  display: flex;
  justify-content: center;
  margin: 0px auto;
  font-size: 100px;
}
@media (max-width: 768px) {
  h1 {
    width: 100%;
    text-align: center;
  }
}

.tribute-info {
  box-shadow: 2px 2px 5px black;
  font-family: Copperplate, fantasy;
  display: flex;
  justify-content: center; 
  flex-wrap: wrap;
  background-color: white;
  padding: 5px;
  margin: 0px auto;
  border-radius: 10px;
  height: auto;
  width: 700px;
text-align: center
}
@media (max-width: 768px) {
  #tribute-info {
    width: 100%;
    text-align: center;
  }
}
#king {
  display: flex;
  justify-content: center;
  color: silver;
  font-family: papyrus, fantasy;
  text-shadow: 2px 2px 5px black;
  height: auto;
  width: 700px;
  font-size: 30px;
  margin: 0px auto;
}
@media (max-width: 768px) {
  #king {
    width: 100%;
    text-align: center;
  }
}
#image {
  max-width: 100% !important;
  border-radius: 50%;
  max-height: auto;
  display: block;
  margin: 10px auto;
}

 
#img-div {
  box-shadow: 2px 2px 5px black;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background-color: white;
  padding: 10px;
  margin: 0px auto; 
  border-radius: 10%;
  height: auto;
  width: 700px;
}
@media (max-width: 768px) {
  #img-div {
    width: 100%;
    text-align: center;
  }
}
#summary {
  color: silver; 
  font-family: Copperplate, fantasy;
  font-size: 50px;
  text-shadow: 2px 2px 5px black;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 15px auto 15px auto;
  text-align: center; 
  padding: 5px
  border-radius: 10%;
  height: auto;
  width: 700px;
}
@media (max-width: 768px) {
  #summary {
    width: 100%;
    text-align: center;
  }}

#career {
  color: silver; 
  font-family: Copperplate, fantasy;
  font-size: 50px;
  text-shadow: 2px 2px 5px black;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin:15px auto 0px auto;
  text-align: center; 
  border-radius: 10%;
  height: auto;
  width: 700px;
}
@media (max-width: 768px) {
  #career {
    width: 100%;
    text-align: center;
  }
}

.stats {
  box-shadow: 2px 2px 5px black;
  font-family: Copperplate, fantasy;
  font-size: auto; 
  display: flex;
  justify-content: center; 
  flex-wrap: wrap;
  background-color: white;
  padding: 5px;
  margin: 0px auto 15px auto;
  border-radius: 10px;
  height: auto;
  width: 700px; 
 
}
  @media (max-width: 768px)
    {.stats {
      width: 100%
  }
  }
p {
  margin: 0px auto;
}
#p1 {
  margin-top: 5px;
}
              
            
!

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