css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <!-- :( I left this a little too late -->
<div class="container">
    <section class="logo">Caketown Cakes</section>
  <img src="http://cdn.shopify.com/s/files/1/0362/1653/products/Pink_Flamingo_Birthday_Cake_01_grande.jpg?v=1476124426" alt="Pink and white chocolate cake" />
  <img src="https://www.wishacupcake.com/wp-content/uploads/2016/12/chocolate-truffle-cake-dark-chocolate-cake-chocolate-sponge-cake.jpg" alt="Raspberry and chocolate cake" />
  <img src="https://i.ytimg.com/vi/EJA5nU9L6zU/maxresdefault.jpg" alt="Chocolate cake" />
  <img src="https://i0.wp.com/files.hungryforever.com/wp-content/uploads/2017/06/29130737/simple-carrot-cake-recipes.jpg?w=1269&strip=all&quality=80" alt="Carrot cake" />
  <img src="http://img.taste.com.au/MV1msD-o/w720-h480-cfill-q80/taste/2016/11/pinata-party-cake-100115-1.jpeg" alt="Smartie cake" />
              body {
  font-family: sans-serif;
  background-color: #222;

.container {
  height: 90vh; width: 80vw; max-width: 600px;
  margin: 4vh auto;
  display: grid;
  grid-template-rows: repeat(6,15vh);
  grid-auto-rows: repeat(6,15vh);

.container header {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  background-color: #f4f4f4;
.container header section {
  grid-column: 1/2;
  padding: 20px;
.container header h1 {
  grid-column: 2/3;
  justify-self: end;
  padding: 20px;
  font-size: 140%;
.container header h1 span {color: fuchsia;}

.container img {
  height: 15vh; width: 100%;
  object-fit: none;
  filter: brightness(1.2) opacity(0.7) grayscale(50%);
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................