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

              
                <main id="main">
        <header class="bg-primary p-10">
            <h1 id="title" class="text-center">Kobe Bryant</h1>
            <p class="text-center">El mejor jugador de la NBA</p>
        </header>

        <div id="img-div" class="margin-50-20 p-50 bg-fourth br-5">

            <img src="http://www.trbimg.com/img-565b989f/turbine/la-sp-ln-kobe-bryant-announces-retirement-after-season-20151129" alt="kobe-bryant" class="br-5" id="image" >
            
            <div id="img-caption">
                <p><strong>Kobe Bean Bryant fue un baloncestista estadounidense que disputó veinte temporadas en la NBA</strong></p>
            </div>
        </div>

        
            <section class="bg-secondary margin-50-20 p-50 br-5">
                <h2 id="tribute-info" class="text-center">Premios de Kobe Bryant</h2>

                <ul>
                    <li class="mb-20">MVP de las Finales de la NBA: <b>2009, 2010</b> </li>
                    <li class="mb-20">5 veces campeón de la NBA: <b>2000, 2001, 2002, 2009, 2010</b> </li>
                    <li class="mb-20">Jugador más joven en ser incluido en el mejor quinteto defensivo <b>(1999-00)</b></li>
                    <li class="mb-20">Jugador más joven en ganar el concurso de mates (18 años, 175 días) en <b>1997</b></li>
                    <li class="mb-20">Uno de los tres jugadores capaces de anotar <b> 35 o más puntos en 13 partidos consecutivos</b> (los otros son Allen Iverson y LeBron James).</li>
                    <li class="mb-20">Uno de los tres jugadores capaces de anotar <b>40 o más puntos en 9 partidos consecutivos</b>  (los otros son Michael Jordan y Wilt Chamberlain)</li>
                </ul>


            </section>
    


        <footer class="bg-fourth p-10 text-center br-5">
            <div class="caja">
                <p class="info text-center t-none"><a href="https://kobe-bryant.fandom.com/es/wiki/Premios" target="_blank" id="tribute-link">Mas informacion sobre el tema</a></p>
            </div>
        </footer>
    </main>

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

CSS

              
                :root {
  --primary: #e5dcc3;
  --secondary: #c7bea2;
  --third: #aaa492;
  --fourth: #9a9483;
}

html {
  font-size: 16px;
  padding: 0;
  margin: 0 auto;
  font-family: "Poppins", Courier, monospace;
  box-sizing: border-box;
}

/* usable - start*/

.bg-primary {
  background-color: var(--primary);
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-third {
  background-color: var(--third);
}

.bg-fourth {
  background-color: var(--fourth);
}

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

.p-50 {
  padding: 50px;
}

.margin-50-20 {
  margin: 50px 20px;
}

.p-10 {
  padding: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.t-none {
  text-decoration: none;
  list-style: none;
}

.br-5 {
  border-radius: 5px;
}

/* usable - end */

#title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 0;
}

#img-caption {
  margin: 25px 0 5px 0;
  text-align: left;
  display: inline-block;
}

#tribute-info {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 70px;
  transition: all 0.3s;
}

#tribute-info:hover {
  color: rgba(94, 86, 86, 0.726);
}

img {
  max-width: 90%;
  display: block;
  height: auto;
  margin: 0 auto;
}

.info a {
  text-align: center;
  text-decoration: none;
  color: white;
  transition: all 0.3s;
}

.caja {
  background-color: rgba(0, 0, 0, 0.24);
  padding: 0.3rem;
  border-radius: 0.3rem;
  display: inline-block;
  margin-top: 20px;
  transition: all 0.3s;
}

.info a:hover {
  color: var(--primary);
}

/* Medias query */
@media (max-width: 460px) {
  #title {
    font-size: 2rem;
    line-height: 1.2;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console