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

              
                <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Stan Lee Tribute</title>
    <link rel="stylesheet" href="style.css">
    <link href="https://fonts.googleapis.com/css?family=Bangers|Oswald:700" rel="stylesheet">
</head>
<body id="main">
    <header id="title">
            <h1>Stan Lee</h1>
        <h2>creator of Marvel</h2>
    </header>
    <main>
        <div id="img-div">
            <img id="image" src="https://proxy.duckduckgo.com/iu/?u=https%3A%2F%2Fs-media-cache-ak0.pinimg.com%2Foriginals%2Fbb%2Fd1%2F30%2Fbbd130c5f5b9e624091ebf7f731d98b0.jpg&f=1" alt="Stan Lee">
            <div id="img-caption">Stan griting it for the camera</div>
        </div>
        <div id="tribute-info">
            <p>Born December 28, 1922<em><strong> Stanley Martin Lieber</em></strong> was an American comic book writer, editor, 
                and publisher who was active from the 1940s to 2010. 
                He rose through the ranks of a family-run business, later named Marvel Comics, 
                to become primary creative leader for two decades, leading its expansion from a small 
                division of a publishing house to a multimedia corporation that dominated the comics 
                industry. In collaboration with others at Marvel he co-created numerous characters, 
                including Spider-Man,  Iron Man, the Incredible Hulk, Thor, Black Panther, the X-Men, and many more. In doing so, he pioneered a more naturalistic approach to writing superhero comics in the 1960s, and in the 1970s he challenged the restrictions of the Comics Code Authority, indirectly leading 
to changes in its policies. In the 1980s he pursued development of Marvel in other media, with mixed results. Following his retirement from Marvel in the 1990s, he remained a public figurehead for the company, and frequently made cameo appearances in films based on Marvel characters, on which 
he received an honorary "executive producer" credit. He continued independent ventures into his 90s, until his death in November, 2018.</p>
<p>Lee was inducted into the comic book industry's <strong><em>Will Eisner Award Hall of Fame</em></strong> in 1994 and the <strong><em>Jack Kirby Hall of Fame</em></strong> in 1995. He received the NEA's <strong><em> Medal of Arts</em></strong> in 2008.</p>
<p class="more-info">Learn more about Stan<a href="https://www.marvel.com/remembering_stan_lee" id="tribute-link" target="_blank">"The Man"</a> Lee by clicking here.</p>
</div>
</main>
<footer><strong>Stan "The Man" Lee | 1922-2018</strong>
    </footer>

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

CSS

              
                html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    background: url(https://static3.cbrimages.com/wordpress/wp-content/uploads/2018/02/marvel-2018-header.jpg?q=50&fit=crop&w=798&h=407&dpr=1.5);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}
#title {
    margin: auto;
    text-align: center;
}

header h1 {
    width: max-content;
    height: 140px;
    border: 2px solid #fff;
    margin: 20px auto;
    padding: 0 5px;
    font-size: 100px;
    background-color: #e61717;
    color: #ddd;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    text-align: center;
}

header h2 {
    font-family: 'Bangers', cursive;
    color: #f0f002;
    margin: auto;
    font-size: 36px;
    text-shadow: 2px 2px black,
    -2px -2px black,
     2px -2px black,
    -2px 2px black,
    -2px 2px black;
}

main {
    text-align: center;
}
#img-div {
    margin: auto;
    width: 400px;
    height: 400px;  
}

#image {
    margin: auto;
    max-width: 100%;
    display: block;
    max-height: 100%;
    border: 1px solid #ddd;
    border-radius: 50%;
}

#img-caption{
    color: transparent;
}

#tribute-info {
    margin: 20px 60px;
    padding: 30px;
    background-color: #ddddddbe;
    color: #292929;
    font-size: 24px;
    text-align: left;
}

.more-info {
  text-align: center;
}

a {
    text-decoration: none;
    font-style: italic;
}

footer { 
    margin-right: 80px;
    background-color:#ccccce8c; 
    color: #470202;
    float: right;
}
              
            
!

JS

              
                
              
            
!
999px

Console