123

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.

            
              <div class="wrapper"><div class="inner">
  <h1>CSS Exclusions Example</h1>
  
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam posuere quam non enim commodo, ac pellentesque tortor lacinia. Aenean iaculis interdum tempor. Nullam porttitor lectus eget mollis egestas. Cras posuere velit id vehicula tempor. Mauris id ex id nisi sagittis ornare vitae a erat. Aliquam nisi risus, gravida sit amet augue id, feugiat tempor dui. Vestibulum tincidunt iaculis tellus, eget finibus odio. Quisque ac dapibus massa. Donec placerat nisi velit, quis sagittis turpis lobortis ac. Praesent ornare malesuada velit, id placerat enim imperdiet sit amet. Vestibulum consequat ligula tellus, quis lacinia mauris porta in. Praesent sit amet faucibus purus. Integer vel sagittis augue.</p>

<p>Aliquam tempor interdum volutpat. Suspendisse potenti. Nunc nibh elit, sagittis nec libero a, pretium fermentum sapien. Aliquam eu risus eu dui varius elementum. Curabitur ut ex luctus, egestas dui sit amet, malesuada lectus. Cras a nibh in velit mattis feugiat at at eros. Etiam et leo arcu. Maecenas egestas enim purus, at ornare velit laoreet a. Etiam egestas pharetra diam, non accumsan sapien posuere ornare. Ut sed velit porttitor dolor tincidunt tincidunt. Pellentesque sit amet pulvinar diam. Cras et purus vulputate, consequat dui vel, cursus risus. Quisque pulvinar convallis tempor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>

<p>Sed mollis fermentum lorem, vel vulputate lectus lacinia sit amet. Praesent pulvinar ante id consequat cursus. Quisque faucibus dui et massa suscipit, nec hendrerit nulla ornare. Donec accumsan eros a dictum tempor. Vestibulum a metus id quam eleifend ornare. Fusce sit amet lacus ut nisi viverra volutpat ultrices a ipsum. Ut lacus leo, dictum sit amet nulla ac, volutpat tempor nunc. Donec ut enim eget massa luctus finibus ac ac lorem. Vestibulum pretium lacus a orci molestie volutpat quis eget mi. Aenean lacus erat, dignissim eget mollis auctor, vehicula a dolor. Curabitur id mollis eros, at auctor ipsum.</p>
</div>
 <div class="exclusion1"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/12005/balloons1.jpg"></div>
  <div class="exclusion2"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/12005/balloons2.jpg"></div>
  <div class="exclusion3"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/12005/balloons3.jpg"></div>
  <div class="exclusion4"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/12005/balloons4.jpg"></div>
</div>
            
          
!
            
              img {
  max-width: 100%;
}

.wrapper {
  margin: 0 auto;
  width: 90%;
  max-width: 700px;
  display: -ms-grid;
  -ms-grid-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  -ms-grid-rows: auto auto auto auto auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(5, auto) ;
}

.wrapper .inner{
  -ms-grid-column: 1;
  -ms-grid-column-span: 6;
  -ms-grid-row: 1;
  -ms-grid-row-span: 4;
  grid-column: 1 / span 6;
  grid-row: 1 / span 4;
}

.wrapper .exclusion1 {
   -ms-grid-column: 1;
  -ms-grid-row: 1;
  -ms-wrap-flow: both;
  grid-column: 1 ;
  grid-row: 1;
  padding: 5px 10px;
}

.wrapper .exclusion2 {
   -ms-grid-column: 2;
  -ms-grid-row: 2;
  -ms-wrap-flow: both;
  grid-column: 2 ;
  grid-row: 2;
  padding: 5px 10px;
}

.wrapper .exclusion3 {
   -ms-grid-column: 3;
  -ms-grid-row: 3;
  -ms-wrap-flow: both;
  grid-column: 3 ;
  grid-row: 3;
  padding: 5px 10px;
}

.wrapper .exclusion4 {
   -ms-grid-column: 4;
  -ms-grid-row: 4;
  -ms-wrap-flow: both;
  grid-column: 4 ;
  grid-row: 4;
  padding: 5px 10px;
}

.wrapper  img {
  border-radius: 10px;
}
            
          
!
999px
🕑 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.

Console