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>

<!DOCTYPE html>
<html>
  
<head>
<link rel="stylesheet" href="https://use.typekit.net/jot5zwv.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
  
<body> 
  
<header>
  <div id="title">
    <h1>Dorothea Lange</h1>
    <h2 class="h2">Depression-era Photographer</h2>
  </div>
  
  <div id="nav">
    <a 
       id="tribute-link" href="https://www.moma.org/artists/3373" target="_blank">
      MoMA</a>
    <a 
       id="tribute-link2" href="https://www.icp.org/browse/archive/constituents/dorothea-lange?all/all/all/all/0" target="_blank">ICP</a>
    <a id="tribute-link3"
  href="https://en.wikipedia.org/wiki/Dorothea_Lange" target="_blank">Wikipedia</a>
    <a id="tribute-link4" href="https://www.biography.com/artist/dorothea-lange" target="_blank">Biography</a>
  </div>
</header>
<div id="main">
   <img id="photo" src="https://github.com/be2mbs/fcc-tribute-lange/blob/610f1763f05b5b9f8b830ca5d1f87f5d5e42dbcc/dorothea-lange-camera-car.jpg?raw=true" alt="Dorothea Lange sitting on top of a car and taking a picture">
 <div id="tribute-info">
   <p>Dorothea Lange was an American photojournalist known primarily for her work with the Farm Security Administration in which she showed the true human experience during the Great Depression. For more information, check out the links above.</p>
  </div>
 <hr>
</div>
  
<div id="img-div">
  
 <figure>
    <img src="https://github.com/be2mbs/fcc-tribute-lange/blob/610f1763f05b5b9f8b830ca5d1f87f5d5e42dbcc/migrant-mother.jpeg?raw=true" alt="A mother stares into the distance while holding a baby. Another child rests his head on her shoulder." id="image">
    <figcaption id="img-caption">Migrant Mother, 1936</figcaption>
 </figure>
 <figure>
    <img src="https://github.com/be2mbs/fcc-tribute-lange/blob/610f1763f05b5b9f8b830ca5d1f87f5d5e42dbcc/pea-picker-home.jpeg?raw=true" alt="A tent held up by a car in a wasteland." id="image2">
    <figcaption id="img-caption2">Pea Picker's Home, 1936</figcaption>
 </figure>
  

  </div>                                                                                                                          
</body>
  
</html>

              
            
!

CSS

              
                body {
  background-color: #F7FFFE;
  font-family: starling, serif;
  margin-bottom: 40px;
}

/* Header */
.h2 {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
}

#title {
font-family: maple-web, sans-serif;
font-weight: 500;
font-style: normal;
font-size: 2rem;
text-align: center;
line-height: 15px;
}

#nav {
  text-align: center;
}

a:link, a:visited {
  background-color: #7AB6B2;
  color: white;
  padding: 5px 20px;
  text-align: center; 
  text-decoration: none;
  display: inline-block;
  border-radius: 30px;
}

a:hover {
  background-color: #F7FFFE;
  color: #7AB6B2;
  padding: 5px 20px;
  text-align: center; 
  text-decoration: none;
  display: inline-block;
  border-radius: 30px;
}

/* Borders & Tribute */
#main {
  margin-top: 30px;
  margin-left: 15%;
  margin-right: 15%;
}

#tribute-info {
  text-align: justify;
  font-size: 2rem;
  padding-right: 3%;
  padding-left: 3%;
}

/* Image */
hr {
  width: 75%;
  height: 10%;
  color: #7AB6B2;
}

#photo {
  max-width: 75%;
  border-radius: 10%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Gallery Area */

#img-div {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto; 
  justify-content: center;
}

#img-caption {
  text-align: center;
  font-style: italic;
  font-size: 1em;
}

#img-caption2 {
  text-align: center;
  font-style: italic;
  font-size: 1em;
}

#image {
  display: block;
  width: auto;
  height: auto;
  max-width: 400px;
  max-height: 400px;
  border-radius: 10%;
}

#image2 {
  display: block;
  width: auto;
  height: auto;
  max-width: 400px;
  max-height: 400px;
  border-radius: 10%;
}
/* Responsiveness */

@media (max-width: 500px) {
  
  body {
    font-family: serif;
  }
  
  #title {
font-family: sans-serif;
font-size: 4vh;
text-align: center;
}
  .h2 {
    font-family: sans-serif;
    font-size: 4vh;
    text-align: center;
  }
  
 a:link, a:visited {
  font-size: 5vh;
}
  
  #tribute-info {
    text-align: left;
    font-size: 5vh;
  }
  
    #photo {
max-width: 100%;
display:block; 
height: auto;
    }
  
  #image {
    max-width: 100%;
  }
  
  #image2 {
    max-width: 100%;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console