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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!DOCTYPE html>
<html lang="es">
  <head>
    <meta charset="UTF-8">
    <title>Tribute Page</title>
    <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
  </head>
  <body>
    <div id="main">
      <div id="title">
        <h2>The best videogame company in history</h2>
      </div>
      <div id="img-div">
        <center><img id="image" src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Nintendo_Logo_2017.png/800px-Nintendo_Logo_2017.png" alt="Acá va una imagen"></center>
        <div id="img-caption">
            Nintendo's famous logo
        </div>
      </div>
      <br>
      <div id="tribute-info">
        In its humble origins a toy store, a taxi company and even a hotel, Nintendo is today one of the most famous videogame company who has changed the industry for good, saving it from the abyss when people thought it was the end of videogames.<br><br>
        It has seen a lot of brilliant minds, from tallented composers to marvelous artists who have helped to change gaming forever. Like Shigeru Miyamoto, the very first game designer who created Super Mario. Or Keiji Inafume, creator of the legendary Zelda Theme. 
        <blockquote>
          "On my business card, I am a corporate president. In my mind, I am a game developer. But in my heart, I am a gamer."<br>
          <p id="author">-Satoru Iwata, ex-CEO of Nintendo (1959-2015)</p>
        </blockquote>
      </div>
      <center><p>For more information, please visit their page on<a id="tribute-link" href="https://es.wikipedia.org/wiki/Nintendo" target="_blank">Wikipedia</a>.</p><center>
      <div id="footer">
        Lucas Olivera 2018
      </div>
    </div>
  </body>
</html>

            
          
!
            
              *{
  margin: 5px;
  font-family: "Trebuchet MS", sans-serif;
}

body{
  background-color: pink;
}

#main{
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  height: auto;
  background-color:#eee;
  border-radius: 5px;
  padding: 5px;
}

#title{
  text-align: center;
  background-color: #de0000;
  color: #fff;
  text-shadow: -1px -1px #000000;
  border-radius: 5px;
}

#img-div{
  background-color: #de0000;
  border-radius: 5px;
  align-self: center;
}

#image{
  max-width: 50%;
  display: block;
  height: auto;
}

#img-caption{
  text-align: center;
  font-style: italic;
}

#tribute-info{
  text-align: justify;
}

blockquote{
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 40px;
  margin-right: 40px;
  font-family: Georgia;
  font-style: italic;
  border-left: 4px solid #CCC;
  padding-left: 8px;
}

#author{
  text-align: right;
}

#footer{
  text-align: center;
  background-color: #de0000;
  color: #fff;
  text-shadow: -1px -1px #000000;
  border-radius: 5px;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console