cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

              <!-- :( 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%);
Loading ..................