Pen Settings



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


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


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.


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.


                <div id="main">
    <h1 id="title">Chimamanda Ngozi Adichie</h1>
    <p>The Nsukka-born, world-renowned writer</p>
  <figure id="img-div">
    <img src="" id="image"
    <figcaption id="img-caption">Adichie in 2013</figcaption>
    <section id="tribute-info">
      <p>Chimamanda Ngozi Adichie grew up in Nigeria.</p>
      <p>Her work has been translated into over thirty languages and has appeared in various publications,
        including <em>The New Yorker</em>, <em>Granta</em>, <em>The O. Henry Prize Stories</em>, the
        <em>Financial Times</em>, and <em>Zoetrope</em>. She is the author of the novels
        <em>Purple Hibiscus</em>, which won the Commonwealth Writers’ Prize and the Hurston/Wright Legacy
        Award; <em>Half of a Yellow Sun</em>, which won the Orange Prize and was a National Book Critics
        Circle Award Finalist and a New York Times Notable Book; and <em>Americanah</em>, which won the
        National Book Critics Circle Award and was named one of The New York Times Top Ten Best Books of
        2013. Ms. Adichie is also the author of the story collection <em>The Thing Around Your Neck</em>.
      <h3>Here's a timeline of Ms. Adichie's life and achievements so far:</h3>
        <li><strong>1977:</strong> Born in Nsukka, Nigeria</li>
        <li><strong>2003:</strong> Published <em>Purple Hibiscus</em></li>
        <li><strong>2006:</strong> Published <em>Half of a Yellow Sun</em></li>
        <li><strong>2007:</strong> <em>Half of a Yellow Sun</em> won the Orange Prize Prize for Fiction</li>
        <li><strong>2005:</strong> <em>Purple Hibiscus</em> won the Commonwealth Writers’ Prize</li>
        <li><strong>2009:</strong> Published <em>The Thing Around Your Neck</em></li>
        <li><strong>2013:</strong> Published <em>Americanah</em></li>
      <p id="more-info">You can
        <a href="" target="_blank" id="tribute-link">Adichie’s website</a>.
  <script src=""></script>
    <a href="">
      <img style="border:0;width:88px;height:31px" src=""
        alt="Valid CSS!" />


                body {
    background: #f1f1f3;
    font-family: "Lato", "Lucida Grande", "Lucida Sans Unicode", Tahoma, Sans-Serif;
    margin-left: 3rem;
    margin-right: 3rem;

header {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;

#title {
    font-size: 3em;
    font-weight: 900;

#img-div {
    background: #d5d7de;
    padding: 1.5rem;

#image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;

#img-caption {
    text-align: center;

#tribute-info {
    text-align: justify;
    padding-top: 2.5rem;

#more-info {
    padding-bottom: 1rem;


                // !! 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. 

  - Select the project you would 
    like to complete from the dropdown 
  - Click the "RUN TESTS" button to
    run the tests against the blank 
  - 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.