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 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.

Quick-add: + add another resource

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.

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">
  <header>
    <h1>diversy<span>cake</span></h1>
    <section class="logo">Caketown Cakes</section>
  </header>
  <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" />
</div>
            
          
!
            
              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 {
  grid-row:3/4;
  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%);
}
            
          
!
999px
Loading ..................

Console