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

              
                <div id="main">
 
  <h1 id="title">Maya Angelou</h1>
  
  <figure  id="img-div">
  <img id="image"  src="https://josefinas.com/sites/default/files/blog/foto.jpg" alt="picture of maya angelou">
    <figcaption id="img-caption">Picture of Maya Angelou</figcaption>
    </figure>
  <p id="tribute-info">Maya Angelou was a civil rights activist, poet and award-winning author known for her acclaimed 1969 memoir, 'I Know Why the Caged Bird Sings,' and her numerous poetry and essay collections.
    Angelou was born on April 4, 1928, in St. Louis, Missouri. Angelou had a difficult childhood. Her parents split up when she was very young, and she and her older brother, Bailey, were sent to live with their father's mother, Anne Henderson, in Stamps, Arkansas.
<br>
As an African American, Angelou experienced firsthand racial prejudices and discrimination in Arkansas. She also suffered at the hands of a family associate around the age of 7: During a visit with her mother, Angelou was raped by her mother's boyfriend. As vengeance for the sexual assault, Angelou's uncles killed the boyfriend.
  </p>
  <p>
    Click here for <a id="tribute-link" target="_blank" href="https://en.wikipedia.org/wiki/Maya_Angelou">more info about Maya Angelou.</a>
  </p>
  
  
  </div>
              
            
!

CSS

              
                h1 {
  text-align: center;
  padding: 20px;
  background-color: #b8d9e0;
  font-family: papyrus;

}

#img-caption {
  text-align:center;
  margin-top: 20px;
  margin-bottom: 30px;
}

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

p{
  max-width: 74%;
  text-align: justify;
  margin: 0 auto;
  font-size: 20px;
  line-height: 2;
}

@media (max-width: 460px) {
  p {
    font-size: 13px;
    line-height: 1.2;
  }
  
  #img-caption {
    font-size: 1.4rem;
  }
  
  h1 {
  padding: 10px;
  font-size: 20px;

}
}
              
            
!

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