Pen Settings



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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


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


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.


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.


                <main class="fragment">

<p>“The sun had not yet risen. The sea was indistinguishable from the sky, except that the sea was slightly creased as if a cloth had wrinkles in it. Gradually as the sky whitened a dark line lay on the horizon dividing the sea from the sky and the grey cloth became barred with thick strokes moving, one after another, beneath the surface, following each other, pursuing each other, perpetually.”&nbsp;<abbr title="Virginia Woolf">V.W.</abbr></p>



                @charset "UTF-8";

/* Variables */
:root {
  --color-bg: #fff;
  --color-fg: #333;
  --color-dynamic: #f00;
  --ratio: 1.618;

/* General features */
html {
  box-sizing: border-box;
  font-size: 62.5%;

*::before {
  box-sizing: inherit;

body {
  height: 100%;

::selection {
  color: var(--color-bg);
  background-color: var(--color-fg);

body {
  /* Fonts from - see in <head> */
  font-family: 'EBGaramond12Regular', 'Garamond', 'Palatino Linotype', Palatino, Palladio, 'URW Palladio L', 'Book Antiqua', Baskerville, 'Bookman Old Style', 'Bitstream Charter', 'Nimbus Roman No9 L', Garamond, 'Apple Garamond', 'ITC Garamond Narrow', 'New Century Schoolbook', 'Century Schoolbook', 'Century Schoolbook L', Georgia, serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: normal;
  font-style: normal; 
  color: var(--color-fg);
  background-color: var(--color-bg);
  quotes: "«\00A0" "\00A0»" "“" "”";
  font-size: 3rem;
  letter-spacing: 0.01rem;
  line-height: var(--ratio);
  margin: 0 auto;
  padding: 0;
  min-height: 100%;
  width: 100%;

@media screen and (min-width: 18.75em) { /* 300px */
  body {
    /* Fluid typography
     * calc([minimum size] + ([maximum size] - [minimum size]) * ((100vw - [minimum viewport width]) / ([maximum viewport width] - [minimum viewport width]))); */
    font-size: calc(20px + (30 - 20) * ((100vw - 300px) / (1280 - 300)));

@media screen and (min-width: 80em) { /* 1280 px */
  body {
    font-size: 3.0rem;

p {
  padding: 0;
  margin: calc(var(--ratio) * 1em) auto;
  max-width: 55ch;

/* Specific features */
.fragment {
  padding: 2em;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

abbr[title] {
  cursor: pointer;
  font-style: italic;
  text-decoration: none;
  color: var(--color-fg);
  background-position: 0 0;
  background-image: linear-gradient(to top, var(--color-fg) 0.1em, transparent 0.1em);
  text-align: center;
  padding: 0.1em 0.25em 0 0.1em;

abbr[title]:focus {
  text-decoration: none;
  background: var(--color-fg);
  color: var(--color-bg);

abbr[title]:focus::after {
  content: attr(title);
  position: fixed;
  left: 0;
  bottom: 0;
  width: 62%;
  max-width: 400px;
  font-size: inherit;
  background-color: var(--color-fg);
  color: var(--color-bg);
  padding: 0.5em;



                // code void