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.

            
              <style type="text/css"> 
     html:not(.gss-ready) { opacity: 0; } 
</style>
<noscript> 
  <style type="text/css"> html:not(.gss-ready) { opacity: 1; } 
  </style> 
</noscript>

 <section>
   <div id="d1" class="darkbox"></div>
   <div id="d2" class="lightbox"></div>
   <div id="d3" class="lightbox"></div>
   <div id="d4" class="purplebox"></div>
 </section>

<style type="text/gss">
   
  div {
    height: == 100;
  }
  
  ingap == 10;
  
  //Try resizing the window to see the size inequality in action.
  @h |-(#d1(==100))-(#d2(>=100, <= 300))-(#d3(>= 50, <=400))-(#d4(<= 150))-| in(::window) gap(ingap);
                                         
</style>

<script src="https://s3-us-west-2.amazonaws.com/cdn.thegrid.io/gss/v2.0.0/v2.0.0/gss.js"></script>
 <script type="text/javascript">
  window.engine = new GSS(document);
</script>
            
          
!
            
              
body {
  font-family: "museo-sans",sans-serif;
  font-style: normal;
  font-weight: 500;
  color: white;
  margin: 0;
}

.darkbox {
  background-color: #7DB4B5;
}

.lightbox {
  background-color: red; 
}

.purplebox {
  background-color: #680148;
}
            
          
!
            
               //Feel free to explore what going on in the GSS engine!
console.log(window.engine);
            
          
!
999px
Loading ..................

Console