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 lang="en" dir="ltr">

<head>
  <meta charset="utf-8">
  <title>Amelia Earhart</title>

  <!-- Bootstrap -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">

  <!-- CSS Stylesheets -->
  <link rel="stylesheet" href="styles.css">

  <!-- Google Fonts -->
  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@1,200&family=Noto+Serif&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Sacramento&display=swap" rel="stylesheet">

</head>

<body>
  <div id="main">

    <section id="title">
      <div class="container-fluid">
        <div class="row">
          <div class="rectangle">
            <h1 class="heading">AMELIA EARHART</h1>
            <h2 class="subtitle">A pioneering aviator and a true female trailblazer.</h2>
          </div>
        </div>

      </div>
    </section>

    <section id="img-div">
      <div class="container-fluid">
        <div class="row">

          <div class="col-xs-12">
            <div class="image-circle-container">
              <img id="image" src="https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/gettyimages-545683465-1-1566329501.jpg?crop=0.9588014981273407xw:1xh;center,top&resize=480:*" alt="Amelia-Earhart-image">
              <div class="circle"> </div>
            </div>

          </div>

          <div id="img-caption" class="row">
            <div class="col-xs-12">
              <p>Amelia Earhart was the definition of a rule breaker. An American aviator who became the first woman to fly solo across the Atlantic and the first person ever to fly solo from Hawaii to the US.</p>
            </div>

          </div>
        </div>
      </div>
    </section>

    <section id="tribute-info">
      <div class="container-fluid">
        <div class="row">
          <h2 class="tribute-title">AMELIA EARHART'S LIFE</h2>
          <h3>“Women must try to do things as men have tried. When they fail, their failure must be but a challenge to others.”</h3>
        </div>

        <div class="row life-info">

          <div class="col-md-3 col-xs-6 info info-1">
            <p>Earhart always refused to be boxed in by her gender, born in Kansas in 1897 Amelia played basketball growing up, took auto repair courses and briefly attended college.</p>
          </div>

          <div class="col-md-3 col-xs-6 info info-2">
            <p>In 1920, Earhart began flying lessons and quickly became determined to receive her pilot's license, passing her flight test in December 1921. </p>
          </div>

          <div class="col-md-3 col-xs-6 info info-3">
            <p> She attempted to being the first person to circumnavigate the globe, but in July 1937 Earhart disappeared somewhere over the Pacific, and was declared dead. Her plane wreckage has never been found.</p>
          </div>

          <div class="col-md-3 col-xs-6">
            <div class="image2-div">
              <img class="image2" src="https://static01.nyt.com/images/2019/08/18/science/18conversation/12SCI-EARHART1-promo-superJumbo.jpg" alt="Earhart on a plane-image">
            </div>
          </div>


        </div>
      </div>
    </section>

    <section id="learn-more">
      <div class="container-fluid learn">
        <div class="row">
          <div class="col">
            <h2 class="learn-title">INTERESTED IN LEARNING MORE?</h2>
            <p class="links">Click on the following links to find great entries about Amelia Hart.</p>
          </div>
        </div>

        <div class="row">
          <div class="col">
            <ul>
              <li><a id="tribute-link" target="_blank" href="https://es.wikipedia.org/wiki/Amelia_Earhart">Wikipedia</a></li>
              <li><a target="_blank" href="https://www.history.com/topics/exploration/amelia-earhart">History</a></li>
              <li><a target="_blank" href="https://historia.nationalgeographic.com.es/a/amelia-earhart-mujer-que-nacio-para-volar_14545">Nat Geo</a></li>
            </ul>
          </div>
        </div>
      </div>
    </section>
  </div>

</body>
  <!–– This script shows that the tests of the Free Code Camp challenge are passed (Tribute page must be selected on the opening menu) <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> ––>


</html>

              
            
!

CSS

              
                body {
  margin: 0;
}

/* Headings */
h1, h2 {
  font-family: 'Noto Serif', serif;
  text-align: center;
}

h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  text-align: center;
}

h1 {
  color: white;
  font-size: 400%;
  text-align: center;
  margin-top: 0;
  padding-top: 100px;
  letter-spacing: 20px;
}

/* Other elements */

p {
  font-family: 'Montserrat', sans-serif;
}

ul {
  margin-left: 180px;
  margin-top: 50px;
  margin-bottom: 50px;
  line-height: 2;
}

/* Links */
a {
  text-decoration: none;
}

a:hover {
  color: #008B8B;
  font-weight: bold;
}

/* Containers */
.container-fluid {
  height: 630px;
}

/* Title Section */
#title {
  background-image: url("https://images.pexels.com/photos/66997/pexels-photo-66997.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940");
  background-size: cover;
}

.rectangle {
  border-color: white;
  border-style: solid;
  border-width: 6.25%;
  width: 75rem;
  height: 28.125rem;
  margin: auto;
  position: relative;
  top: 80px;
}

.heading {
padding-top: 160px;
}

.subtitle {
  color: white;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 2px;
  padding-top: 90px;
}

/* Description Section */
#img-div {
  color: #696969;
  margin-top: 100px;
}

.image-circle-container{
  height: 15.265rem;
  margin: 0 auto;
  margin-bottom: 5.625rem;
  max-width: 18.75rem;
}

#image {
  height: auto;
  max-width: 70%;
  margin: 0 auto;
  display: block;
}

.circle {
  height: 22rem;
  width: 22rem;
  border-style: solid;
  border-color: #008B8B;
  border-radius: 50%;
  border-width: 8px;
  position: relative;
  bottom: 330px;
  right: 25px;
}

#img-caption {
  letter-spacing: 3px;
  font-size: 1.25rem;
  text-align: center;
  width: 1000px;
  margin: 2% auto;
  }

/* Life Section */
#tribute-info {
  color: white;
  background-color: #008B8B;
  padding-top: 30px;
  margin-bottom: 50px;
  height: auto;
}

.tribute-title {
  font-size: 4rem;
  letter-spacing: 5px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.life-info {
  margin-top: 50px;
  padding: 5% 7%;
  background-color: #008B8B;
}

.image2 {
max-width: 100%;
  border-radius: 10px;
}

.info {
  letter-spacing: 3px;
}

/* Learn More Section */
.learn {
  height: auto;
}

.learn-title {
  letter-spacing: 5px;
  font-size: 3rem;
}

.links {
  text-align: center;
}

/* Media Queries */

@media (max-width:900px){
  .rectangle {
    border-width: 0;
  }

  #image {
    width: 80%;
    height: 70%;
    margin-left: 30px;
  }

  .circle {
    display: none;
  }

  #tribute-info {
    margin-bottom: 700px;
  }
.info-1, .info-2, .info-3, .image2-div{
  padding-top: 5%;
  text-align: center;
}

}

              
            
!

JS

              
                
              
            
!
999px

Console