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


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div id="container">
  <h1>Web design panel</h1>
  <h2>Choose your flavor</h2>
  <div class="panel">
    <div class="input-mask">
      <label class="label label-good"><input type="radio" name="good" id="good"/> Good</label>

    <div class="input-mask">
      <label class="label label-cheap"><input type="radio" name="cheap" id="cheap"/>Cheap</label>

    <div class="input-mask">
      <label class="label label-fast"><input type="radio" name="fast" id="fast"/>Fast</label>


  background #e4ecf0
  font-family 'Raleway'
  width 400px 
  max-width 90%
  padding-top 30px
  position absolute
  top 50%
  left 50%
  transform translate(-50%, -50%)
  background-color rgba(255,255,255,0.6)
  box-shadow -1px 1px 6px rgba(0,0,0,0.15)
  border-radius 8px
  font-size 36px
  font-weight 300
  text-align center
  margin-bottom 0.5em
  color #444f54
  font-weight 700
  font-size 14px
  text-align center
  margin-bottom 2em
  color #839fd6
  padding 30px 30px 20px
  border-top 1px solid rgba(80,80,80,0.1)
  position relative
  display inline-block
  font-size 30px
  line-height 1em
  margin-top 0.5em
  margin-bottom 1em
  padding-left 100px
  cursor pointer
  font-weight 600
    content ''
    display block
    position absolute
    transform translateY(-50%)
    top 50%
    transition all 0.7s ease
    width 60px
    height 18px 
    border-radius 9px
    background-color #aaa
    left 0
    width 30px
    height 30px
    background-color #ccc
    border-radius 50%
    left -5px
  opacity 0
  //visibility none
  display none
    left 35px
    background-color #79a16d
    background-color #6dbe56
    background-color #6d7ea1
    background-color #5574bd
    background-color #a26d74 
    background-color #bd5562



var uncheck = function (el){
  $(el).prop('checked', false);

var checkOptions = function(optionTry){
  var good = $('#good')[0].checked;
  var cheap = $('#cheap')[0].checked;
  var fast = $('#fast')[0].checked;
  var option = optionTry;
  if (good && option == 'cheap') {
  } else if (cheap && option == 'fast') {
  } else if (fast && option == "good") {
  //console.log(good, cheap, fast);

  $(':radio').on('change', function(){
    var id = $(this)[0].id;