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

              
                <link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300&display=swap" rel="stylesheet">

<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200&display=swap" rel="stylesheet">

<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap" rel="stylesheet">

<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<body>
  
  <main id="main">
    
  <h1 id="title">
Princess Franny
  </h1>
    <h2>
The good news of 2020
  </h2>
 
  <div id="img-div">
     <img id="image" class ="img_border" src="https://i.ibb.co/ww43gFB/Princess-Franny.jpg" alt="Princess Franny">
    <figcaption id="img-caption">Credits : Andrae Ricketts from Unsplash</figcaption>
  </div>
  
  <div id="tribute-info" ><p>I am honored to create this tribute page for my beautiful baby girl <a href="https://unsplash.com/photos/Q9_zv0LN4jU" target="blank">Franny</a>
 : </p>
    <ul>
      <li>Born just before the beginning of covid19, you brought all the <strong>strength</strong>   we would soon need</li>
      <li>Full of joy</li>
      <li>Vivacious</li>
      <li>Very Smart !</li>
      <li>Very observant!</li> 
       <li>Persevering</li>
       <li>Courageous</li>
       <li>You are the queen of stunts!</li> 
      <li>And what a beautiful hair you have!</li>
      
  </ul>
    <p >I marvel at your progress every day and look forward to seeing what a beautiful person you will become.</p>
    <p>In the meantime, here are a lot of <a id="tribute-link" href="https://afroculture.net/coupe-afro-pour-bebes-noirs-et-metis-de-0-a-36-mois/" target="_blank">hairstyle ideas</a> on the Afroculture website to make you pretty curly hair.
    </div>
  </main>
  
</body>
              
            
!

CSS

              
                html{ 
  font-size: 62.5%; 
}

body{ 
  font-family: "Nunito Sans",Poppins,"Trebuchet MS", sans-serif;
  background-color: #AD7A99; 
  color: black; 
  margin: 0; } #main{ 
    background-color: #FBD1A2; 
    margin: 1rem 1rem; } 

#title { 
  text-align: center;
  color: black; 
  font-size: 4.2rem;
  font-family: Montserrat, "Nunito Sans", "Trebuchet MS", sans-serif; 
  white-space: nowrap;
  margin-bottom: 0rem;
  padding: 1rem 0rem 0.1rem 0rem; } 

@media screen and (max-width: 460px){
  #title{ 
    font-size: 2.5rem;
  } 
} 

h2 { 
  text-align: center; 
  color: black; 
  margin-top:1%; 
  margin-bottom: 2%; 
  padding-top: 0; 
} 

@media screen and (max-width: 460px) {
  h2{ 
    font-size: 100%; 
  } 
} 

a { 
  color: #000000; 
  font-style: bold; 
} 

a:visited { 
  color: #74638f; 
} 

#img-div { 
  background-color: inherit; 
  text-align: center; } #image{ border-radius: 8%; max-width: 60%; height: auto; display: block; margin-left: auto; margin-right: auto; margin-top: 4%; } 

#img-caption{ 
  color: black; 
  font-size: 0.8rem; 
  text-align: center; 
} 

.img_border{ border-color: #AD7A99; border-width: 0.5rem; border-style: solid; } #tribute-info{ font-size: 1.5rem; margin-left: auto; margin-right: auto; padding-top: 0.5em; padding-bottom: 1rem; background-color: inherit; text-align: left; width:85%; } ul { max-width: margin: 0 auto rem 30px; text-align: left; line-height: 1.5; font-size: 1.5rem; } li { margin: 8px 0; }
              
            
!

JS

              
                
              
            
!
999px

Console