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>

<div id="main">
  <div id="title">
    <h1>Mikhail Tal</h1>
    <h2>One of the Best Attacking Players of All Time</h2>
  </div>
  <div id="img-div">
    <img src="https://cdn.chess24.com/4RTEGAp-TPqLbB8UmW-pBA/original/tal-1964.jpg" alt="Mikhail Tal thinking about his next move." id="image">
    <div id="img-caption">
      <p>Mikhail Tal focusing deeply on what he is about to play.</p>
    </div>
  </div>
  <div id="tribute-info">
    <p>Mikhail Tal (Latvian: Mihails Tāls; Russian: Михаил Нехемьевич Таль, Mikhail Nekhem'evich Tal, pronounced [mʲɪxɐˈiɫ nʲɪˈxʲemʲɪvʲɪtɕ ˈtalʲ]; sometimes transliterated Mihails Tals or Mihail Tal; 9 November 1936 – 28 June 1992)[1] was a Soviet Latvian chess player and the eighth World Chess Champion.</p>

<p>Widely regarded as a creative genius and one of the best attacking players of all time, Tal played in a daring, combinatorial style.[2][3] His play was known above all for improvisation and unpredictability. It has been said that “Every game for him was as inimitable and invaluable as a poem".[4] He was often called "Misha", a diminutive for Mikhail, and "The magician from Riga". Both The Mammoth Book of the World's Greatest Chess Games[5] and Modern Chess Brilliancies[6] include more games by Tal than any other player. In addition, Tal was a highly regarded chess writer. He also previously held the record for the longest unbeaten streak in competitive chess history with 95 games (46 wins, 49 draws) between 23 October 1973 and 16 October 1974, until Ding Liren's streak of 100 games (29 wins, 71 draws) between 9 August 2017 and 11 November 2018.[7][8]</p>

<p>The Mikhail Tal Memorial has been held in Moscow annually since 2006 to honour Tal's memory.</p>
  </div>
  <p>Learn more about how he baffles his opponent with his unpredictable moves <a href="https://en.wikipedia.org/wiki/Mikhail_Tal" target="_blank" id="tribute-link">right here!</a></p>
</div>
              
            
!

CSS

              
                /* Body Properties */

body {
  background-image: url('https://images.pexels.com/photos/1762815/pexels-photo-1762815.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940');
  font-family: 'Montserrat', sans-serif;
  color: #FFFFFF;
  text-align: center;
  margin: 50px auto;
}

/* Main Properties */

#main {
  background-color: #222222;
  width: 90%;
  margin: auto;
}

/* Title Properties*/

#title {
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
}

#title h1 {
  font-size: 60px;
  color: #87CEEB;
  margin: 0;
}

#title h2 {
  border:  5px;
  margin: 0 auto;
}

/* Img Properties */

#image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  border: red solid 5px;
  border-radius: 5%;
  max-width: 90%;
  height: auto;
  box-sizing: border-box;
  animation-name: rainbow-border;
  animation-duration: 7s;
  animation-iteration-count: infinite;
}

#img-caption {
  margin-left: auto;
  margin-right: auto;
  color: #87CEEB;
}

/* Tribute Info Properties */

#tribute-info {
  padding: 10px;
}

#tribute-info p {
  margin-bottom: 20px;
  line-height: 35px;
}

/* Tribute Link Properties */

#tribute-link {
  display: block;
  padding-bottom: 25px;
  color: pink;
}

/* animation */

@keyframes rainbow-border {
  0% {
    border-color: red;
  }
  
  10% {
    border-color: orange;
  }
  
  20% {
    border-color: yellow;
  }
  
  30% {
    border-color: green;
  }
  
  40% {
    border-color: blue;
  }
  
  50% {
    border-color: indigo;
  }
  
  60% {
    border-color: violet;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console