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

              
                  <body>
    <header>
      <h1 id="title">Gioachino Greco, the First Professional Chess Player</h1>
    </header>
    <main id="main">
      <div id="tribute-info">
        <figure id="img-div">
          <img src="http://en.chessbase.com/portals/4/files/news/2008/winter/winter036.jpg" alt="A line drawing showing the profile of a long-haired man with facial hair in Renaissance-era clothing." id="image1">
          <figcaption>No authentic portrait of Greco is known to exist. The above depiction, which appeared in a Spanish-language chess history book first published in the 20th-century, <cite>Historia general del ajedrez</cite>, is the closest thing we have.</figcaption>
        </figure>
        <h2>Who was <em>il Calabrese</em>?</h2>
        <p>Gioachino Greco (c. 1600 - c. 1634) was an Italian chess player and writer who played the best chess players in Rome, London, Paris and Madrid. He was known as <em>il Calabrese</em>, "The Man from Calabria".</p>
        <p>Considered the first professional chess player, he was a commoner when chess was still a game of the noble classes. He gained renown for his abilities and earned substantial monetary prizes for his victories.</p>
        <p>What truly established his legacy, though, were the manuscripts he wrote for wealthy patrons on chess rules, advice for best play, and instructive games and positions. <span class="tooltip">These games are taught to beginners to this day.
        <span class="tooltiptext">You can find a <a href="https://www.chessgames.com/perl/chessplayer?pid=72111" target="_blank">database of his games at chessgames.com</a>.</span></span></p>
        <h2>Greco's playing style and manuscripts</h2>
        <p>Greco learned from the works of Alessandro Salvio (c. 1575 - c. 1640), an eminent player of his time who operated a chess school in Naples. His style of play was characterized by fast piece development and early attacks on the opposing king, often involving the gambiting of pawns.</p>
        <p>Notably, Greco's manuscripts included several chess games described in their entirety, move-by-move. A posthomous printing of his work included nearly 100 of his games. By comparison, only one game of Salvio survives today.</p>
        <figure id="img-div2">
          <img src="https://upload.wikimedia.org/wikipedia/commons/4/4c/Greco_book.jpg" alt="This is a scan of two pages from a 17th-century book. The page on the left is a portrait of a king. On the right, the book's title page." id="image2">
          <figcaption>A 1656 post-homous printing of Greco's work, <cite>The Royall Game of Chesse-Play</cite> with a portrait of King Charles I of England. A <a href="https://babel.hathitrust.org/cgi/pt?id=njp.32101075891802&view=1up&seq=14&skin=2021">digitized copy of this book</a> is available courtesy of HathiTrust.</figcaption>
        </figure>
        <h2>The Modenese School</h2>
        <p>Greco's playing style carried over into the Modenese school of chess, employed by the "Modenese Masters" from Modena, Italy in the 18th-century (as described by Anne Sunnucks in <cite>Modenese Masters</cite>, 1970). The competing school of thought at that time was the Philidor school, employed by the French chess player François-André Danican Philidor (1726-1795), which focused more on the interplay between pawns and pieces.</p>
        <p>Many "schools" of chess have been en vogue throughout the centuries, and their ideas were so influential that they often defined their respective eras. That's no longer the case today: players now draw upon many sources rather than subscribing to a single school.</p>
        <h2>Greco's legacy</h2>
        <p>Historians and chess champions have helped contextualize Greco's contributions to chess. It was Mikhail Botvinnik (1911-1995), the sixth World Chess Champion, who called Greco the first professional chess player.</p>
        <h2>Quotes about Greco</h2>
        <blockquote>"Greco was the <span class="tooltip">Morphy<span class="tooltiptext">Paul Morphy (1837-1884), an American prodigy called "The Pride and Sorrow of Chess", was the greatest chess master of the Romantic era.</span></span> of the seventeenth century, and it may safely be said that in brilliancy and fertility of invention he has never been surpassed." J.A. Leon in <cite>The Games of Greco</cite> (1900).</blockquote>
        <blockquote>"He was the most productive and inventive chess author of the classical era." Peter J. Monté in <cite>The Classical Era of Modern Chess</cite> (2014).</blockquote>
        <h2>More about Greco</h2>
        <p>Biographical information can be found at <a href="https://en.wikipedia.org/wiki/Gioachino_Greco" id="tribute-link" target="_blank">Greco's Wikipedia page</a>.</p>
      </div>
    </main>
  </body>
</html>

              
            
!

CSS

              
                    * {
      margin: 0;
      padding: 0;
    }

    html {
      /* Overwriting root element's font to equal 10px to allow easy use of rem values. Rationale here: https://www.aleksandrhovhannisyan.com/blog/respecting-font-size-preferences-rems-62-5-percent/ */
      font-size: 62.5%;
      --ff-body: "Garamond", serif;
      --ff-heading: "Comorant Garamond", serif;
      --main-bg-clr: #fff;
      --main-line-height: 1.4;
      --main-text-color: #333;
    }

    a {
      color: #9a8973;
    }

    a:visited {
      color: #806e59;
    }

    a:hover {
      color: #d3bfa7;
    }

    body {
      background: var(--main-bg-clr);
      color: var(--main-text-color);
      font-family: var(--ff-body);
      font-size: 1.8rem;
      line-height: var(--main-line-height);
      margin: 10px;
      text-align: justify;
    }

    blockquote {
      padding: 0 3rem 1rem 3rem;
    }

    figure {
      border: 1px solid black;
    }

    h1 {
      font-family: var(--ff-heading);
      font-weight: 700;
      font-size: 3rem;
      line-height: 1.2em;
      text-align: center;
    }

    h2 {
      font-family: var(--ff-heading);
      font-weight: 500;
      font-size: 2.5rem;
      text-align: left;
    }

    img {
      max-width: 100%;
      height: auto;
      margin: 0 auto;
    }

    header {}

    main {
      /* set 'background:' property to a color. */
      padding: 0 1rem 0 1rem;
    }

    figcaption {
      font-size: 1.6rem;
    }

    ol {
      list-style-position: inside;
    }

    #tribute-info {
    }

    #img-div {
      border-radius: 0.5rem;
      display: flex;
      flex-wrap: wrap;
      margin: auto;
      padding: 1rem;
      }

    #img-div2 {
      border-radius: 0.5rem;
      display: flex;
      flex-wrap: wrap;
      margin: auto;
      padding: 1rem;
    }
    #image1 {
      border-radius: 50%;
    }

    p {
      margin-bottom: 1.4rem;
    }
    .tooltip {
      display: inline;
      border-bottom: 2px dotted;
    }

    .tooltip .tooltiptext {
      display: none;
      width: calc(100vw - 100px);
      max-width: 400px;
      background-color: #f8e6cb;
      text-align: center;
      border-radius: 6px;
      padding: 5px;
      position: absolute;
      z-index: 1;
    }
  
    .tooltip:hover {
      color: #806e59;
      border-bottom: 2px dotted #806e59;
    }

    .tooltip:hover .tooltiptext {
      display: block;
    }

    @media (min-width: 600px) {
      body {
        font-size: 1.8rem;
      }
      figcaption {
        font-size: 1.6rem;
      }
      h1 {
        font-size: 4rem;
      }
      h2 {
        font-size: 3.5rem;
      }
      header {
        max-width: 600px;
        margin: auto;
      }
      main {
        max-width: 600px;
        margin: auto;
      }
      footer {
        max-width: 600px;
        margin: auto;
      }

    }


              
            
!

JS

              
                
              
            
!
999px

Console