Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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 lang="en">
     <head>
       <meta charset="UTF-8">
       <title>About #</title>
       <link rel="preconnect" href="https://fonts.gstatic.com">
     <link href="https://fonts.googleapis.com/css2?family=Arvo:ital@1&display=swap" rel="stylesheet">
       <link rel="stylesheet" href="/css/style.css" media="all"> 
      <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    </head>
    <body>
      <div id="main">
        <div class="title-container">
          <h1 id="title" class="centerText">Orson Scott Card</h1>            
        </div>
        <div id="img-div">
          <img id="image" src="https://greenvillejournal.com/wp-content/uploads/2019/09/Orson-Scott-Card-e1569536619341.jpg" alt="image of Orson Scott Card">
          <h2 id="img-caption" class="centerText">The man who brought the world Ender's Game</h2>
        </div>
        <div id="tribute-info"> 
          <h2 class="centerText">Timeline of Awards and Legacy</h2>
      <ul>
              <li id="bullet1" class="list">1978 John W. Campbell Award for Best New Writer from the World Science Ficti      on Convention, citing the Ender's Game novelette
    </li>
              <li id="bullet2" class="list">1984 Saints: Book of the Year by the Association for Mormon Letters
    </li>
              <li id="bullet3" class="list">1985 Ender's Game: Nebula Award, 1985; Hugo Award, 1986
    </li>
              <li id="bullet4" class="list">1987 "Eye for Eye": Hugo Award, 1988; Seiun Award, 1989
    </li>
              <li id="bullet5" class="list">1987 "Hatrack River": Nebula nominee, 1986, Hugo nominee, 1987, World Fantas      y Award (WFA) winner - novella, 1987
    </li>
    <li id="bullet6" class="list">1988 Seventh Son: Hugo and WFA nominee, 1988; Mythopoeic Society Award 1988; Locus Awa      rd winner, 1988
    </li>
    <li id="bullet7" class="list">1989 Red Prophet: Hugo nominee, 1988; Nebula Nominee, 1989; Locus winner, 1989
    </li>
    <li id="bullet8" class="list">1991 How to Write Science Fiction and Fantasy (Writer's Digest Books, 90): Hugo Award
    </li>
    <li id="bullet9" class="list">1995 Alvin Journeyman: Locus Award winner, 1996
    2002 Shadow of the Hegemon: ALA Best Books for Young Adults
    </li>
            </ul>
          </div>
      <footer>
          <a id="tribute-link" href="https://en.wikipedia.org/wiki/Orson_Scott_Card" target="_blank">
            <p class="centerText">Information Gathered From Wikipedia</p>
          </a>
    </footer>
      </div>
      <script src="https://cdn.fr
    </body>
    </html>
              
            
!

CSS

              
                body{
  padding:0;
  margin:0;
}  

#main{
    margin: 0px;
    padding: 0px;
    max-width: 100%;
    box-sizing:border-box;
    display: flex;
    flex-direction: column;
    font-family: 'Arvo', serif;
  }
  
  .centerText{
    text-align: center;
  }
  
  .title-container{
    background-color: darkgray;
    text-align: center;
  }
  
  #title{
    font-weight: 600;
  }
  
  #img-div{
    max-height: 100vh;
    max-width: 100vw;
    background-color:hsl(0, 0%, 80%)
  ;
  }

  #image{
    display: block;
    max-width: 100%;
    max-height: 90vh;
    margin-left: auto;
    margin-right: auto;
  }
  
  #tribute-info{
    background-color: lightgray;
    text-align: center;
  }
  ul{
    max-width: 50%;
    text-align: left;
    align-content: center;
    margin: 0 auto 30px auto;
  }
  
  ul li{
   padding: 10px 5px;
   font-size: 20px;
  }
  
  footer{
    background-color: darkgray;
  }
              
            
!

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