Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <div class="container">
  <header>
        <h1>Poema 19</h1>
    <p><strong>Neruda</strong></p>
  </header>
  <section id="content"> 
    <pre>Niña morena y ágil, el sol que hace las frutas,
el que cuaja los trigos, el que tuerce las algas,
hizo tu cuerpo alegre, tus luminosos ojos
y tu boca que tiene la sonrisa del agua.

Un sol negro y ansioso se te arrolla en las hebras
de la negra melena, cuando estiras los brazos.
Tú juegas con el sol como con un estero
y él te deja en los ojos dos oscuros remansos.

Niña morena y ágil, nada hacia ti me acerca.
Todo de ti me aleja, como del mediodía.
Eres la delirante juventud de la abeja,
la embriaguez de la ola, la fuerza de la espiga.

Mi corazón sombrío te busca, sin embargo,
y amo tu cuerpo alegre, tu voz suelta y delgada.
Mariposa morena dulce y definitiva
como el trigal y el sol, la amapola y el agua.
</pre>
  </section>
  <figure id="fig1">
    <img src="https://images.unsplash.com/photo-1639330303949-8f6479e1bffd?crop=entropy&cs=srgb&fm=jpg&ixid=MnwxNDU4OXwwfDF8cmFuZG9tfHx8fHx8fHx8MTY0MTE5MTYwOQ&ixlib=rb-1.2.1&q=85" width="300">
  </figure>
  <footer>This is the footer</footer>
</div>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}

body {
  font-family: "Raleway", sans-serif;
}

pre {
  font-family: "Raleway", sans-serif;
}

.container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 1em;
}

header {
  grid-column: 3/9;
  grid-row: 1;
}

#content {
  grid-column: 3/ span 2;
  grid-row: 2;
  
  line-height: 1.3
}

#fig1 {
  grid-column: 8 / span 2;
  grid-row: 2;
}

footer {
  grid-column: 3/-3;
  grid-row: 8;
}

              
            
!

JS

              
                
              
            
!
999px

Console