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.



Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO


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.


Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:


Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO


                <script src=""></script>

<div id="main">              
  <header class="header">
  <div class="text-vertical-center"> 
  <h1 class="title">Manchester United star Cristiano Ronaldo</h1>
    <h2 id="title">Champion</h2>
    <div id="img-div"><img id="image" src="" align='center'>
<h3 id="img-caption">One And Only Portuguese soccer superstar Cristiano Ronaldo.<h3>      
        <a href="">Cristiano Ronaldo Photos</a>  
  <a href="#about">
    <div id="about" class="container">
      <div class="row">
        <h1 class="page-header">About</h1>
          <p>Born on February 5, 1985,<strong> Cristiano Ronaldo dos Santos Aveiro</strong> is a Portuguese soccer superstar. By 2003 — when he was just 16 years old — Manchester paid £12 million (over $14 million U.S. dollars) to sign him, a record fee for a player of his age. In the 2004 FA Cup final, Ronaldo scored Manchester's first three goals and helped them capture the championship. He set a franchise record for goals scored in 2008, before Real Madrid paid a record $131 million for his services the following year. Among his many accomplishments, he has won a record-tying five Ballon d'Or awards for player of the year, and led Portugal to an emotional victory in the 2016 European Championship.</p>
<p>Cristiano Ronaldo is a professional soccer player who has set records while playing for both Manchester United and Real Madrid.</p>
        <a id="tribute-info">Ronaldo is the youngest of four children born to Maria Dolores dos Santos and Jose Dinis Aveiro. He was named after Ronald Reagan, one of his father's favorite actors.

Ronaldo grew up in a largely working class neighborhood in a small tin-roofed home that overlooked the ocean. Ronaldo was introduced to the game of soccer through his dad, who worked as an equipment manager at a boy's club. His early life was shaped by hardship, as his father often drank too much. To help keep the children fed and maintain some financial stability, Ronaldo's mother worked as a cook and cleaning person.</a>
  <p>learn more about Cristiano Ronaldo, see his page at <a id="tribute-link" href="" target="_blank">Wikipedia.</a></p>


                html, body {
    width: 100%;
    height: 100%;
    background-color: #f0c282;
h1 { color: black;
    font-family: Shrikhand, cursive;}
p { color: black;}
h2 { color: white;
text-align: center;}
  width: 10%;
  display: block;
  height: auto;
  margin: auto;
  padding-bottom: 10px;

h3 { color: LimeGreen;
     font-size: 40px;
     text-align: center;
     padding-bottom: 15px;
.header {
    display: table;
    position: relative;
    width: 100%;
    height: 100%;
    background: url("")no-repeat center center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
.container {
.title {
  color: black;
  font-family: 'Montserrat', sans-serif;
  font-size: 5em;
  font-weight: bold;
p{font-size: 30px;
<a href="#"><img 




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

A Pen is worth a thousand docs.