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">
  <div id="header">
    <h1 id="title">José Raúl Capablanca</h1>
    <h2>World Chess Champion</h2>
  </div>
  <figure id="img-div">
    <img id="image" src="https://www.columnadeportiva.com/wp-content/uploads/2017/03/jose-raul-capablanca.jpg" alt="Capablanca in front of a chessboard" />
    <figcaption id="img-caption">
      José Raúl Capablanca, prodigy of the science game and third world chess champion.
    </figcaption>
  </figure>
  <section id="tribute-info">
    <h2 id="headline">Here's a brief time line of Capablanca</h2>
    <ul id="tribute-list">
      <li><strong>1888</strong> - 19 November 1888 born in La Habana, Cuba</li>
      <li>
        <strong>1892</strong> - He learned to play chess at the age of four by watching his father play with friends, pointed out an illegal move by his father, and then beat his father.
      </li>
      <li>
        <strong>1901</strong> - Between November and December 1901, he narrowly beat the Cuban Chess Champion, Juan Corzo, in a match.
      </li>
      <li>
        <strong>1909</strong> - Victory over Frank Marshall (USA champion) in a match.
      </li>
      <li>
        <strong>1910</strong> - He left his studies at Columbia University after one semester to devote himself to chess full-time.
      </li>
      <li>
        <strong>1911</strong> - Capablanca placed second, with 9½ out of 12, in the 1911 National Tournament at New York.
      </li>
      <li>
        <strong>1921</strong> - Win the title of world chess champion against Emmanuel Lasker.
      </li>
      <li>
        <strong>1927</strong> - Loses the world match against Alexander Alekhine; played from September to November 1927 at Buenos Aires.
      </li>
      <li>
        <strong>1928</strong> - From 1928 through 1931, he won six first places, also finishing second twice and one joint second.
      </li>
      <li>
        <strong>1931</strong> - In late 1931, Capablanca also won a match (+2−0=8) against Euwe (the next world champion), whom Chessmetrics ranks sixth in the world at the time.
      </li>
      <li>
        <strong>1931-1933</strong> - He withdrew from serious chess.
      </li>
      <li><strong>1933</strong> - On 6 December 1933, Capablanca won all 9 of his games in one of the club's weekly rapid chess tournaments, finishing 2 points ahead of Samuel Reshevsky, Reuben Fine and Milton Hanauer.</li>
      <li>
        <strong>1939</strong> - Capablanca played for Cuba in the 8th Chess Olympiad, in Buenos Aires, and won the gold medal for the best performance on the top board.
      </li>
      <li>
        <strong>1940</strong> - Capablanca's high blood pressure was not correctly diagnosed and treated until after the AVRO tournament, and caused him to lose his train of thought towards the end of playing sessions. In 1940, he was found to have extremely dangerous hypertension of 210 systolic/180 diastolic (hypertensive crisis is 180/120 or above, and even after treatment Capablanca had 180/130).
      </li>
      <li>
        <strong>1942</strong> - On 7 March 1942, Capablanca was observing a skittles game and chatting with friends at the Manhattan Chess Club in New York City, when he asked for help removing his coat, and collapsed shortly afterward. Eminent physician Eli Moschcowitz administered first aid and then arranged an ambulance. He was taken to Mount Sinai Hospital, where he died at 6:00 AM the next day. Lasker had died in the same hospital only a year earlier. The cause of death was given as "a cerebral hemorrhage provoked by hypertension", in particular a hypertensive thalamic hemorrhage.
      </li>
    </ul>    
  </section>
  <blockquote cite="https://en.wikipedia.org/w/index.php?title=Jos%C3%A9_Ra%C3%BAl_Capablanca&action=edit&section=11">
    <p>
      Alekhine wrote in a tribute to Capablanca: "Capablanca was snatched from the chess world much too soon. With his death, we have lost a very great chess genius whose like we shall never see again." Lasker once said: "I have known many chess players, but only one chess genius: Capablanca."
    </p>
  </blockquote>
  <p>      
    <a id="tribute-link" href="https://en.wikipedia.org/wiki/Jos%C3%A9_Ra%C3%BAl_Capablanca" target="_blank">Capablanca on Wikipedia</a>
  </p>
</main>

              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@900&display=swap");

html {
  background-color: rgba(127, 255, 212, 0.4);
}

main {
  text-align: center;
}

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

#header {
  font-size: 1.5rem;
}

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

#image {
  max-width: 100%;
  display: block;
  margin: auto;
  border-style: double;
}

#img-caption {
  margin: 1em;
}

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

#tribute-info {
  border-radius: 30px;
  margin: 1vh 24vw 1vh 24vw;
  background-color: whitesmoke;
  padding-bottom: 1vw;
}

@media (max-width: 640px) {
  #tribute-info {
    margin: auto;
  }
  blockquote {
    margin: auto;
  }
}

h2 {
  padding-top: 1vh;
}

#tribute-list {
  margin: auto;
  padding-right: 2vw;
  list-style-type: square;
  text-align: justify;
  line-height: 1.7rem;
  font-size: large;
}

#headline {
  font-family: Roboto, Arial, sans-serif;
  font-size: 1.7rem;
}
/*
blockquote {
  text-align: justify;
  margin: 1vh 24vw 1vh 24vw;
  font-style: oblique;
  font-size: 1.1rem;
}
*/
blockquote {
  text-align: justify;
  font-style: oblique;
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 460px;
}

a {
  background-color: rgba(125, 160, 165, 0.308);
  transition: background-color 0.5s;
  font-size: 1.5rem;
}

a:hover {
  background-color: gold;
}

a:visited {
  color: crimson;
}

              
            
!

JS

              
                // eslint-disable-next-line no-unused-vars
const projectName = "tribute-page";

              
            
!
999px

Console