Slidr.css

A standalone CSS library for sliders. No Javascript needed!

Sample Code

<label class="checkbox">
  <!-- 
    Note the data-on and data-off attributes to set the text.
    Possible additional classes are:
    slidr-info | slidr-success | slidr-warning | slidr-danger | slidr-inverse
  -->
  <input type="checkbox" value="">
  <span class="slidr" data-on="ON" data-off="OFF"></span>
  Option one is this and that—be sure to include why it's great
</label>

Default Styles

Legend Example block-level help text here.

Horizontal form

Inline form

Slidrs

Setting Text