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.

              <h1>Price Range Sliders</h1>
<h2>with EQCSS</h2>

  <label for=low>
    <input type=range id=low min=0 max=100 oninput="high.value=Math.max(value,high.value)" value=1>
  <label for=high>
    <input type=range id=high min=0 max=100 oninput="low.value=Math.min(value,low.value)" value=20>


  <li data-col=item data-price=7.99>
    <div data-bg=https://images-na.ssl-images-amazon.com/images/I/51d9-l1l3KL.jpg></div>
    <h2>Omega Paw Paw Cleaning Litter Mat</h2>

  <li data-col=item data-price=8.99>
    <div data-bg=https://images-na.ssl-images-amazon.com/images/I/51ztDFaC5EL._SL1000_.jpg></div>
    <h2>Leegoal Shark Warm Indoor Kitten Dog Cat Sofa Bed Puppy Pet House with Mat</h2>

  <li data-col=item data-price=14.99>
    <div data-bg=https://images-na.ssl-images-amazon.com/images/I/51XN1rJFmOL._SL1001_.jpg></div>
    <h2>New Lovely Cute Little White Cat Coffee Milk Ceramic Mug Cup</h2>

  <li data-col=item data-price=15.80>
    <div data-bg=https://images-na.ssl-images-amazon.com/images/I/61t3wl0p5vL._UY395_.jpg></div>
    <h2>Susenstone Women Cat Rabbit Leather Shoulder Bag Cross Body Purse Handbag Messenger</h2>

  <li data-col=item data-price=17.09>
    <div data-bg=https://images-na.ssl-images-amazon.com/images/I/61HCFmNDY-L._SL1500_.jpg></div>
    <h2>niceEshop Portable Rechargeable Silicone LED Children Night Light</h2>

  <li data-col=item data-price=19.99>
    <div data-bg=https://images-na.ssl-images-amazon.com/images/I/41zooV%2BPVFL.jpg></div>
    <h2>OliaDesign Black & White Cat Coffee Ceramic Mugs, Set of 2</h2>

  <li data-col=item data-price=33.99>
    <div data-bg=https://images-na.ssl-images-amazon.com/images/I/71slw1-2ZtL._UX385_.jpg></div>
    <h2>XMiniLife New Digital Print Hoodie Sweatshirt</h2>

  <li data-col=item data-price=39.00>
    <div data-bg=https://images-na.ssl-images-amazon.com/images/I/61WjF4LlW3L.jpg></div>
    <h2>CitiKitty Cat Toilet Training Kit</h2>

  <li data-col=item data-price=64.00>
    <div data-bg=https://images-na.ssl-images-amazon.com/images/I/71OmaqrllVL._SL1500_.jpg></div>
    <h2>New Navy Blue 73" Cat Tree Scratcher Play House Condo Furniture Post Pet House</h2>

  <li data-col=item data-price=66.00>
    <div data-bg=https://images-na.ssl-images-amazon.com/images/I/71tkbGFegpL._SL1500_.jpg></div>
    <h2>The Kitty Pass Interior Cat Door, Pet Door Hidden Litter Box.</h2>

              * {
  box-sizing: border-box;
[type=range] {
  width: 100%;
label:after {
  content: attr(for);
  display: block;
  text-align: center;
  margin: 1em 0;
  font-size: 14pt;
  font-weight: 900;
nav:after {
  content: '';
  display: block;
  clear: both;
ul {
  margin: 0;
  padding: 0;
  list-style: none;
li {
  padding: 0;
  margin: 0 0 1em 0;
  width: calc(25% - (1em*3 / 4));
  margin-right: 1em;
  float: left;
  position: relative;
  border: 2px solid #333;
li:nth-of-type(4n) {
  margin-right: 0;
li img {
  display: block;
  width: auto;
  max-width: 100%;
li:before {
  content: '$'attr(data-price);
  font-weight: 900;
  position: absolute;
  top: .5em;
  right: .5em;
  line-height: 1;
  font-size: 14pt;
  text-shadow: rgba(0,0,0,.25) 1px 2px 2px;
li h2 {
  padding: .5em;
  line-height: 1.2;
  font-weight: 400;
  font-size: 12pt;
@media (min-width: 500px) {
  label {
    padding: 1em;
    width: 50%;
    float: left;
@element [data-bg] {
  $this {
    width: 100%;
    height: 100ew;
    background: url(eval('getAttribute("data-bg")')) no-repeat center center;
    background-size: cover;
@element label {
  $this:after {
    content: 'eval("querySelector('input').value")';
@element li {
    var price = parseInt(getAttribute('data-price'));
    (low.value < price && price < high.value) ?
    '$this' : ''
  ") {
    border-color: red;
    var price = parseInt(getAttribute('data-price'));
    (low.value < price && price < high.value) ?
    '$this:before' : ''
  ") {
    color: red;
Loading ..................