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

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

<!-- 

Hello Camper!

For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 
-->
<!DOCTYPE html>
<html>

<head>
  <title>Tribute to Stan lee</title>
</head>

<body>
  <div id="main">
    <div id="title">
      <h1>Stan Lee</h1>
      <h2><i>Marvel Comics Legend</i>
        <h2>
    </div>
    <div id="img-div">
      <figure>
        <img id="image" src="https://c1.staticflickr.com/5/4880/46346067071_d809c3e8a8_b.jpg" alt="Grafitti, street art about Stan lee">
        <figcaption id="img-caption">Grafitti commemorating Stan Lee</figcaption>
      </figure>
    </div>
    <div id="tribute-info">
      <h3><strong>TimeLine</strong></h3>
      <ul>
        <li><span><strong>1922 </strong>Stanley Martin Lieber was born in Manhattan, New York.</span></li>
        <li><span><strong>1939 </strong>Lee get an assistant job at the new Timely Comics division of Pulp Magazine</span></li>
        <li><span><strong>1941 </strong>Stan Lee first superhero co-creation, Destroyer in Mystic Comics #6</span></li>
        <li><span><strong>1942-1945 </strong>Serves in the Army during WWII, writing manuals and scripts for training films as part of the Signal Corps. He is one of only nine people in the Army listed as a "playwright"
        <li><span><strong>1961 </strong>Lee and his Marvel collaborators unveil a group of heroes called the Fantastic Four. The group is introduced as Marvel's answer to the Justice League from rival publisher DC Comics</span></li>
        <li><span><strong>1961-1968 </strong>Co-writes comic books that introduce such characters as Spider-Man, the Incredible Hulk, Captain America, Iron Man, Thor and a group of mutants called the X-Men</span></li>
        <li><span><strong>1972 </strong>Stan Lee becomes Marvel's publisher</span></li>
        <li><span><strong>1998 </strong>Lee along with Peter Paul started a new Internet-based superhero creation, production and marketing studio, ‘Stan Lee Media’. The company grew and gained a considerable success but had to be closed down due to legal implications</span></li>
        <li><span><strong>2001 </strong>Lee start a company called POW! that develops movies and television shows centered on new superheroes</span></li>
        <li><span><strong>2008 </strong>President George W. Bush presents Lee with the American National Medal of the Arts</span></li>
        <li><span><strong>2010 </strong>The History Channel launches the series "Stan Lee's Superhumans," which documents people with extraordinary skills and abilities</span></li>
        <li><span><strong>2011 </strong>At the age of 88, Lee gets a star on the Hollywood Walk of Fame</span></li>
        <li><span><strong>2018 </strong>Dies at the age of 95</span></li>
      </ul>
    </div>

    <div id="tribute-footer">
      <p>Stan Lee brought cartoon characters to life—in every sense of the word. What used to be “flawless” cartoon characters became regular human beings save their super powers in Stan’s own terms. He made them alive by giving them problems, insecurities,
        and emotions. They no longer wear a mask and women started becoming part of the team and not just someone who needs saving. To put it simply, Stan turned the comics industry into a well-respected discipline.</p>
      <p>If you have time, you should read more about this incredible human being on his <a id="tribute-link" href="https://en.wikipedia.org/wiki/Stan_Lee" target="_blank">Wikipedia Entry</a></p>
    </div>
  </div>
</body>

</html>
              
            
!

CSS

              
                body{
  font-family: "Comic sans MS", Helvetica, sans-serif;
  text-align: center;
  background: url(https://c1.staticflickr.com/5/4834/31406741957_326e39229b_b.jpg);
  background-attachment: fixed;
}
#main{
  grid-template-columns: 1fr 10fr 1fr;
  grid-template-rows: auto auto auto auto;
  display: grid;
  grid-template-areas:
    ". header ."
    ". content1 ."
    ". content2 ."
    ". footer .";
  grid-gap: 20px;
  font-size: 18px;
}
#title{
  background-image: linear-gradient(to right, #F3D403, #fff);
  grid-area: header;
  border: 5px solid #000000;
  border-radius: 35px;
  font-size: 22px;
  background-color: #F5F5F5;
  color: #CC4224;
}
h1{
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
h2{
  font-size: 20px;
}
#img-div {
  grid-area: content1;
  margin: auto;
}
img { /* responsive image */
  max-width: 100%;
  height: auto;
  display: block;
}
#img-caption{
  background-color: #f5f5f5;
}
figure {
  border: 2px solid #000000;
}
#tribute-info {
  background-image: linear-gradient(to right, #F3D403, #fff);
  grid-area: content2;
  border: 5px solid #000000;
  border-radius: 35px;
  background-color: #F5F5F5;
}
  ul{
  max-width: 100%;
  margin:0 auto;
  text-align:left;
}
li {
  color: #000000; /* bullet color */
  margin: 30px;
}
li span {
  color: #CC4224;/* text color */
}
#tribute-footer{
  padding: 15px;
  background-image: linear-gradient(to right, #F3D403, #fff);
  grid-area: footer;
  border: 5px solid #000000;
  border-radius: 35px;
  background-color: #F5F5F5;
  color: #CC4224;
}
a:hover {
color: #000000;
}
@media only screen and (max-width: 480px) { /*Adjust font and background image for mobile */
  body{
	  background-attachment: scroll;
  }
  #main{
    font-size: 4vw;
  }
  h1 {
    font-size: 10vw;
  }
  h2{
    font-size: 4vw;
  }
  ul {
    padding: 15px;
  }
}
              
            
!

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