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

              
                <section id="artists">
  <h2>Our Artists</h2>
  
  
Mixed Media
Anni Roenkae
<img src="https://assets.codepen.io/296057/fem-rebel-yell.jpg" alt="Rebel Yell - triangles of red, green, orange, yellow, and grey." />
Anni Roenkae is a visual artist based in Finland.

Link to www.anniroenkae.com


Wallpaper
Ben Neale
<img src="https://assets.codepen.io/296057/fem-wallpaper.jpg" alt="Grey squares with deep wells of aqua, with white lines in between the squares."/>
Ben Neale is a photographer and designer, based out of Adelaide, Australia. 

Link to https://www.pexels.com/@ben-neale-123878


Artwork
Sharon McCutcheon
<img src="https://assets.codepen.io/296057/fem-drip.jpg" alt="A rainbow of shiny paint drips." />
Sharon McCutcheon specializes in LGBTQIA+ themes, stock photos, macro images, backgrounds, and colorful visuals. 

Link to https://unsplash.com/@sharonmccutcheon

Photography
Francesco Ungaro
<img src="https://assets.codepen.io/296057/fem-invader.jpg" alt="A dirty yellow wall with a rust-color 8-bit space invader." />
Francesco Ungaro is a strategy and presentation consultant and photography lover, based in Milan. 

Link to: https://www.ghostpresenter.it/
</section>
              
            
!

CSS

              
                











/* default styling, no changes needed here */

/* set the layout to border box model */
html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
/* set font family and background gradient */
body {
  padding: 0;
  border: 0;
  font-family: Arial, sans-serif;
}
img {
  width: 100%;
}

              
            
!

JS

              
                /* EXERCISE 14: LAYING OUT CARDS

To this point, we've worked with a lot of figures in our HTML. Figures are great where the image is the focus of the story, and the text describes the image.

However, not all images with text may need the <figure> element. Here, we have a series of images from certain artists. The cards should link to a page with more information (links provided). 

PART 1: What is the right markup for these cards?

PART 2: How do we lay these cards out to look a specific way on mobile and desktop layouts?


*/
              
            
!
999px

Console