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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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>
  <head>
    <title>Clara Campoamor - Tribute Page</title>
 </head>

<body>

<main id="main">
  <h1 id="title">Clara Campoamor</h1>
  <h2>Spanish Sufragette</h2>
  
  <div id="img-div">
  

    <img
      id="image" src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a3/Clara_Campoamor.png/220px-Clara_Campoamor.png"
      alt="A black and white portrait photograph of Clara Campoamor"
    />
     <figcaption id="img-caption">
       Clara Campoamor
     </figcaption>
    <p id="tribute-info">
      1888-1972
    </p>
    
    
  </div>
  
  <div>
    <ul>
      <li>Born in Madrid in 1888.</li>
      <li>Started working at the age of 10, but studied for the University entrance exam alongside various jobs.
      </li>
      <li>Completed a Law Degree in 1924, at the age of 36.
      </li>
      <li>Elected to the Spanish Parliament of the <a href="https://www.donquijote.org/spanish-culture/history/second-spanish-republic/" target= "_blank">Second Republic of Spain</a> in 1931, <strong>although she herself could not vote</strong>.</li>
        <li>Instrumental in drafting the Constitution of the Second Republic in which women were granted the right to vote. 
      </li>
      <li>Failed to get re-elected in 1933.</li>
      <li>Subsequently fled Spain in 1939 after the arrival of Francisco Franco's fascist regime in Madrid.
      </li>
      <li>Settled in Lausanne, Switzerland, then later Buenos Aires, Argentina, returning to Lausanne in 1955 where she lived until her death in 1972.
      </li>
      <li>Her ashes were re-patriated to Spain after her death and lie in San Sebastian.</li>
    </ul>
    
    <img src="https://www.ibercultura.ch//upload/blog-articulo/editor/grd/66/imagen-iconica-de-clara.jpg" alt="Clara Campoamor giving a speech">A great orator</a>
  <br>
    
    <p>Read more about <a id="tribute-link" target="_blank" href="https://en.wikipedia.org/wiki/Clara_Campoamor">Clara Campoamor in Wikipedia</a>.
    </p>
  </div>
 </main>     
 
</body>
</html>
              
            
!

CSS

              
                body {
  font-family: avenir;
  background-image:  linear-gradient(to right, darkseagreen, lightyellow, palegreen);
  color:  black;
  text-align: center;
  max-width:  80%;
}

h1  {
  background-color:  lightyellow;
}

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 30%;
}


ul {
  text-align:  justify;
  line-height:  150%;
  padding-top:  25px;
  padding-left:  30%;
  max-width:  50%;
}

#img-caption {
  font-family:  cursive;
}

#image {
  border-radius:  50%;
  border-color:  lightyellow;
  border-style:  solid;
  border-width:  6px;
  max-width:  100%;
  display:  block;
}
              
            
!

JS

              
                document.getElementsByTagName("h1")[0].style.fontSize = "6vw";
              
            
!
999px

Console