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>
<header id="header">
  <img id="header-img" src=>
  <nav id="nav-bar">
      <li><a href=#About-Us class="nav-link">About Us</li></a>
    <li><a href=#Services class="nav-link">Services</li></a>
  <li><a href=#Contact-Us class="nav-link">Contact Us</li></a>
<iframe id="video" width="560" height="315" src="" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<section id="List">
<form id="form" action="">
  <h2> To Receive a Motivational Video each morning, join our mailing list</h2>
  <input name="email" id="email" type="email" placeholder="Enter your email address"> 
  <input button type="submit" id="submit" class="button" value="Motivate Me"></button>
<section id="About-Us">
<h2 class="box-1"> About Us </h2>
  <p class="box-2"> This has been a nightmare </p>
<section id="Services">
  <h2 class="box-1"> Services </h2>
  <p class="box-2"> At Singh enterprises, we can help get your life back on track by offering you blunt yet very strategic advice. The average person doesn't realize a lot of things about themselves due to influence from friend's and family but we're here to help. 
In addition to counselling, we also have a mentorship program available where we paid the attendee with a mentor who meets with them on a weekly basis to help steer the attendee in the right direction by having casual conversation. Each mentor has to go through a tough screening process, verification and 3 rounds of interviews before getting admitted to the program.
We can connect each attendee with the correct organization after we review the attendee's needs and once the evaluation is done.</p>
  <section id="Contact-Us">
    <h2 class="box-1"> Contact US </h2>
    <p class="box-2"> Would you like for us to take an interest in your life and help ? 
If so, please contact us:
      Karan Singh


  height: 100px;
  width: 200px;
  position: fixed;
  top: 10px;
  right: 100px;
  justify content: space-around;
  display: flex;
  flex-direction: row;
  list-style-type: none;
li a{
  padding: 5px;
  margin: 0 auto;
  display: block;
  padding: 10px;
  display: flex;
  background-image: linear-gradient(skyblue, gray);
  width: 100%;
  height: 50%;
  background-image: linear-gradient(#2D46D2, black);
  width: 100%;
  height: 50%;
  background-color: gray;
  background-color: skyblue;
  height: 20px;
  width: 106px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-item: center;
  justify-content: center;
  text-align: center;
  width: 250px;
  margin: 0 auto;
  position: relative;
  top: 0;

@media (max-width: 100px){
    background-color: red;



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

How would you React if I said I love Vue?