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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<html> 
  <div id = "main">
  <h1 id = "title"> Princess Cecilie of Greece and Denmark </h1>
 <center>
   <figure>
<div id = "img-div">
<img class="responsive-img" src="https://www.salonprivemag.com/wp-content/uploads/2019/04/Princess-Cecilie-of-Greece-and-Denmark-1934_FT.jpg" alt = "Grand Duchess Cecilie of Hesse" id="image"</img>
  <figcaption id="img-caption"><em>Princess Cecilie</em></figcaption>
     </div>
<p id ="tribute-info"> Princess Cecilie was the older sister of Prince Philip, Duke of Edinburgh. She was born in Tatoi, Greece in 1911.She usually went by Cécile. She married her first cousin once-removed, George Donatus, Hereditary Grand Duke of Hesse, on 2 February 1931.They had three children together: Prince Ludwig (born 1931), Prince Alexander (born 1933) and Princess Johanna (born 1936).In November 1937 Cecilie was eight months pregnant with her fourth child. Her brother-in-law Prince Ludwig was going to marry the Honourable Margaret Campbell-Geddes in London. On 16 November Cecilie, George Donatus, their two sons and George’s mother Eleonore travelled from Darmstadt to London. Also on board were Joachim Riedesel Freiherr (Baron) zu Eisenbach, and Lina Henar, the children’s nurse.  Near Ostend in Belgium, the plane hit a factory chimney. The wing and engine were ripped away and the plane crashed in flames. All passengers and crew lost their lives in the accident. Tragically, remains of a newborn child were found among the wreckage. It is thought that either Cecilie had gone into labour or that the impact caused such significant damage that the child was born. Either option sounds absolutely horrendous.The flight was scheduled to stop at Brussels, but bad weather forced them to continue on to Ostend, Stene Airport. Cecilie was buried with her husband, two sons and the stillborn child in Darmstadt at the Rosenhöhe. The funeral procession was lined with people giving the Hitler salute.The only surviving member of the family was Princess Johanna, who was adopted by George Donatus’ brother Prince Ludwig and his new wife, Princess Margaret. Their wedding took place the next day, but it was significantly toned down, and people were dressed in mourning. Princess Johanna would tragically die just two years later from meningitis, and she is buried with her parents and siblings.

  
  <p>
    More information here <a id="tribute-link" class="responsive" href="https://www.historyofroyalwomen.com/cecilie-of-greece-and-denmark/princess-cecilie-greece-denmark-tragic-plane-crash/" target="_blank">Cecilie's life</a>
    <div id="tribute-link">Tribute to the Princess of Greece and Denmark</div>
    <footer> 2021 Leah E</footer>
  </div>
  
              
            
!

CSS

              
                #main{
  display: absolute;
  margin: 30px, auto;
  background-color: white;
}
#title{
  color: black;
  text-align: center;
  background-color: white;
}
h2{
  color: #006400;
  font-size: 20px;
}

#image
{
  height: auto;
  width: 100%
  max-width: 625px;
  margin-left: auto;
  margin-right: auto;
  display: auto;
}
#img-caption {
  font-family: Sans-serif;
}
p{
  font-family: Helvetica;
}

.tribute-link
{
  font-size: 20px;
}
img{
  max-width: 100%;
  display: block;
  height: auto;
  margin: 0 auto;
  width: auto;
}
#img-div{
  max-width: 100%;
  display: block;
  height: auto;
  margin: auto;
  width: auto;
}
#img-info li{
  text-align: center;
  line-height: 1.5em;
}

              
            
!

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