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.

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

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

  <main id="main">
    <h1 id="title">Jaromír Jágr</h1>
    <p class="cz-hockey">Czech hockey attacker</p>
    <figure id="img-div">
      <img id="image" src="https://www.vmcdn.ca/f/files/glaciermedia/import/lmp-all/1054436-jaromir-jagr.jpg"
        alt="Jaromír Jágr, Excelent goals and famouse score in play off in 24 seasons his career in NHL." />
      <figcaption id="img-caption">
        Jaromír Jágr, Excelent goals and famouse score in play off in 24 seasons his career in NHL.
      </figcaption>
    </figure>
    <section id="tribute-info">
      <h3 id="headline">Career:</h3>
      <ul>
        <li><strong>1990 - 2001</strong> - Pittsburgh Penguins.</li>
        <li>
          <strong>2001 - 2004</strong> - Washington Capitals.
        </li>
        <li>
          <strong>2004 - 2007</strong> - New Yourk Rangers.
        </li>
        <li>
          <strong>2008 - 2011</strong> - Avanger Omsk
        </li>
        <li>
          <strong>2010 - 2012</strong> - Philadelphia Flyers
        </li>
        <li>
          <strong>2012 - 2013</strong> - Dallas Stars
        </li>
        <li>
          <strong>2013 - 2013</strong> - Boston Bruins
        </li>
        <li>
          <strong>2013 - 2015</strong> - New Jersey Devils
        </li>
        <li>
          <strong>2015 - 2017</strong> - Florida Panthers
        </li>
        <li>
          <strong>2017 - 2018</strong> - Calgary Flames
        </li>
        <li>
          <strong>2018 - 2021</strong> - Rytíří Kladno
        </li>
      
    </ul>
      <blockquote
        cite="https://jardajagr.estranky.cz/clanky/historie/rozhovor-z-doby-ve-washingtonu.html">
        <p>
        During his time in Washington on the subject of faith, he replied, “Do you know what is most beautiful about faith? That
        you can't pee on faith because no one can guarantee you what it really is. If someone told people when you were nice,
        you would definitely get somewhere very awful and give them clear evidence, so those people who are pissed off would
        behave nicely just to get even better somewhere. And there would be no real desire to do good things. But just because
        you don't know and still try to be good, that's the price. Uncertainty is actually the most interesting thing about that
        faith. Thanks to her, only those really good souls will get somewhere further. "
        </p>
        <cite class="cite-a">In an interview with the daily Sport in September 2010, when asked how his stay in Russia had changed him the most, he
        said: “Probably the most in his attitude towards the church and faith. I have always been a strong believer, but here in
        the Czech Republic, when someone said they believed, others tapped their foreheads ... I'm not ashamed of it here,
        that's the biggest change. And I feel like this is me. The fear that someone will laugh at me is no longer in me. I lost
        the shyness of saying opinions on these things. Nobody here in Russia is ashamed of it. It's quite the opposite - when
        someone is an unbeliever, others are surprised. "</cite>
      </blockquote>
      <h3>
        If you have time, you should read more about this incredible human being
        on his
        <a id="tribute-link" href="https://cs.wikipedia.org/wiki/Jarom%C3%ADr_J%C3%A1gr" target="_blank">Wikipedia Jaromír Jágr</a>.
      </h3>
    </section>
  </main>
  <footer>
    <div class="block-footer">
        <div class="contact-area">
            <div class="contact">Contact</div>
            <div class="email">Email:TomasMatusek@outlook.com</div>
            <div class="whatsApp">WhatsApp:+420 777 98. ...</div>
            <div class="language">Language skill: English, Germany, Czech.</div>
            <div class="copyright">
              <span class="material-icons">
                copyright
              </span><h4 class="creator">Tomas Matusek</h4>
            </div>

        </div>



    </div>
  
  
  
  </footer>

  

              
            
!

CSS

              
                html {
  /* Setting a base font size of 10px give us easier rem calculations
     Info: 1rem === 10px, 1.5rem === 15px, 2rem === 20px and so forth
   */
  font-size: 10px;
}

body {
  /* Native font stack https://getbootstrap.com/docs/4.2/content/reboot/#native-font-stack */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  text-align: center;
  color: #333;
  margin: 0;
}

h1 {
  font-size: 4rem;
  margin-bottom: 0;
}

@media (max-width: 460px) {
  h1 {
    font-size: 3.5rem;
    line-height: 1.2;
  }
}

.cz-hockey{
    font-size: 90px;
    font-weight: 900;
    margin-top: -10px;
    font-family: 'Russo One', sans-serif;
}
@media(max-width:1106px){
   .cz-hockey{
      font-size: 80px;
  } 
}

@media(max-width:996px){
     .cz-hockey{
      font-size: 50px;
  } 
}

p{
    display: inline-block;
border: 15px solid rgb(255, 196, 0);
margin-bottom: 35px;
color:black;
font-size:  25px;
padding: 5px 15px;
background: white;

}

h2 {
  font-size: 3.25rem;
}

a {
  color: #477ca7;
}

a:visited {
  color: #74638f;
}
#title{
    margin-left: -25px;
    margin-top: 0px;
    font-size: 150px;
    color: rgb(230, 200, 34);
    letter-spacing: 10px;
    text-shadow: -5px 0 rgb(91, 90, 104), 0 5px rgb(92, 97, 99), 5px 0 rgb(59, 57, 59), 0 -5px rgb(204, 86, 32);
    border: 10px  white;
    background: url(https://cms.nhl.bamgrid.com/images/photos/316158374/1024x576/cut.jpg);
    font-family: 'Russo One', sans-serif;
}

@media(max-width:1210px){
    #title{
      font-size: 180px;
  }
}

@media(max-width:1094px){
     #title{
      font-size: 120px;
  }
}

@media(max-width:743px){
     #title{
      font-size: 90px;
  }
  .cz-hockey{
      border: none;
      margin-top: 15px;
  }
}
@media(max-width:640px){
     #title{
      font-size: 80px;
  }
  .cz-hockey{
     font-size: 25px;
  }
}
@media(max-width:510px){
     #title{
      font-size: 0px;
  }
  .cz-hockey{
     font-size: 25px;
  }
}



#main {
    padding: 1px 24.9px;
 
background: rgb(2,0,36);
background: url(https://cms.nhl.bamgrid.com/images/photos/316158374/1024x576/cut.jpg);

}

@media (max-width: 460px) {
  #main {
    margin: 0;
  }
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  margin:  auto;
  padding-top: 50px;
}

#img-div {
  background: white;
  padding: 20px 10px;
  margin-top: 5px;
  
}


#img-caption {
  margin: 15px 0 5px 0;
  font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

@media (max-width: 460px) {
  #img-caption {
    font-size: 1.4rem;
  }
}

#headline {
  margin: 50px 0;
  text-align: center;
}

ul {
  max-width: 550px;
  margin: 0 auto 50px auto;
  text-align: left;
  line-height: 1.6;
}

li {
  margin: 16px 0;
  font-family: 'Spartan', sans-serif;
}

blockquote {
  font-style: italic;
  max-width: 545px;
  margin: 0 auto 50px auto;
  text-align: left;
  font-family: 'KoHo', sans-serif;
}

#tribute-info{
    position:relative;
    background-color: burlywood;
    margin-bottom: 50px;
    padding-bottom: 20px;
   
    
}
@media (max-width: 560px) {
  #tribute-info {
    margin: 50;
    padding-left: 10px;
    padding-right: 10px;
  }
  #title{
       font-size: 75px;
       background: #fff;
       color: black;
        width: 483px;
        margin-bottom: 20px;
        text-shadow: none;

  }
  #img-div{
  background: rgb(241, 239, 239);
  padding: 20px 0px;
  margin-top: 5px;
  width: 485px;
  
  margin-left: -27px;

  }
  .cz-hockey{
     font-size: 25px;
  }
  
}



/* @media (max-width: 501px) {
  blockquote {
    padding-bottom: 10px;
    margin-bottom: 100px;
  }
  
} */
footer{
    background:rgb(31, 31, 77);
    /* background: rgb(190, 54, 54); */
    position: relative;
    width: 100%;
    height: 250px;
    color: #fff;
    font-family: 'Spartan', sans-serif;
    letter-spacing: 1px;
   
}
 .block-footer{
   position: relative;
   margin-top: 10px;
   position: relative;
   display: inline-block;
   border: rgb(125, 125, 175) 10px solid;
   border-radius: 4px;
   text-align: justify;
   padding:15px 25px;
   background: rgba(15, 14, 41, 0.808);
 }

.contact{
 
  margin-bottom: 15px;
}

.creator{
  position: relative;
  margin-left: 80px;
  margin-top: -30px;

}
.material-icons{
  display: block;
  position: relative;
  margin-left: 40px;
  margin-top: 20px;
}
              
            
!

JS

              
                
              
            
!
999px
If a groundhog inspects their Web Component, do they see their Shadow DOM?

Console