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.

            
              <article class="grid">
  <section class="section1">
    <p>Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.</p>

    <p>Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.</p>
  </section>
  
  <div class="full-width">
    <img src="https://images.unsplash.com/photo-1498837167922-ddd27525d352?ixlib=rb-0.3.5&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ&s=7999d6304c68ecf0b29429e0e6080838" alt="vegetables">
  </div>
  
  <section class="section2">
    <p>Turnip greens yarrow ricebean rutabaga endive cauliflower sea lettuce kohlrabi amaranth water spinach avocado daikon napa cabbage asparagus winter purslane kale. Celery potato scallion desert raisin horseradish spinach carrot soko. Lotus root water spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea. Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress. Corn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke.</p>
  </section>
  
</article>
            
          
!
            
              body {
  font: 1.2em/1.3 'Alegreya Sans', sans-serif;
  margin: 40px 0 0 0;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 20px 4fr 20px 1fr;
  grid-template-rows: auto 300px auto;
  grid-row-gap: 1em;
}

.grid::before {
  content: "";
  background-color: rgba(214,232,182,.3);
  border: 5px solid rgb(214,232,182);
  grid-column: 2 / 5;
  grid-row: 1 / 4;
}

.section1 {
  grid-column: 3;
  grid-row: 1;
}

.section2 {
  grid-column: 3;
  grid-row: 3;
}

.full-width {
  grid-column: 1 / -1;
  grid-row: 2;
  background-color: rgba(214,232,182,.5);
  padding: 20px 0;
}

.full-width img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
            
          
!
999px
Loading ..................

Console