css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

            
              <form>
  <p>Just a fun experiment. Resize browser for responsexy.</p>
 
  <fieldset>
    
    <legend>Subscription type</legend>

    <input type="radio" name="radio-choice-1" id="radio-choice-1" value="choice-1" />
    <label for="radio-choice-1">
      Basic
      <span>You get basic stuff for this one</span>
      <strong>$5/mo</strong> 
    </label> 
   
    <input type="radio" name="radio-choice-1" id="radio-choice-2" value="choice-2" />
    <label for="radio-choice-2">
      Extended
      <span>This is already a lot more</span>
      <strong>$10/mo</strong> 
    </label>
    
  </fieldset>
  
  <fieldset>
    
    <legend>Amount of awesome</legend>

    <input type="radio" name="radio-choice-2" id="radio-choice-3" value="choice-3" />
    <label for="radio-choice-3">
      Modest user
      <span>Affordable and functional</span>
      <strong>100</strong>
    </label>
    
    <input type="radio" name="radio-choice-2" id="radio-choice-4" value="choice-4" />
    <label for="radio-choice-4">
      Average user
      <span>Just a right amount of normal</span>
      <strong>200</strong>
    </label>
    
    <input type="radio" name="radio-choice-2" id="radio-choice-5" value="choice-5" checked />
    <label for="radio-choice-5" class="most-chosen">
      Active user
      <span>For active peeps</span>
      <strong>400</strong>
    </label>
    
    <input type="radio" name="radio-choice-2" id="radio-choice-6" value="choice-6" />
    <label for="radio-choice-6">
      Power user
      <span>Pretty rad this one</span>
      <strong>800</strong>
    </label>
    
    <input type="radio" name="radio-choice-2" id="radio-choice-7" value="choice-7" />
    <label for="radio-choice-7">
      Extreme user
      <span>You get ALL the awesome stuff</span>
      <strong>1.000</strong>
    </label>
  
  </fieldset>

  <button>Submit</button>
</form>  

<p class="footer">Design totally based on <a href="https://www.ben.nl/sim-only?looptijd=1&bellen=regelmatig&internet=regelmatig">ben.nl/sim-only</a></p>
            
          
!
            
              @import "//fonts.googleapis.com/css?family=Roboto+Condensed:400,700&subset=latin"

$blue: #00aeef
$lightgray: #ddd

*,
*:before,
*:after
  box-model: border-box
   
body
  color: #333
  font: 20px/1.5 'Roboto Condensed', sans-serif
  background: #eee
  min-width: 420px

form,
fieldset,
legend
  padding: 0
  margin: 0
  
form
  width: 50%
  margin: 50px auto
  overflow: hidden

fieldset
  margin: 60px 0
  position: relative
  border: 1px solid $lightgray

legend
  font-weight: 600
  position: absolute
  top: -40px
  border: 0
    
input[type=radio]
  display: none
  
label
  font-size: 17px
  font-weight: bold
  line-height: 1
  cursor: pointer
  display: block
  padding: 15px 10px 15px 50px
  position: relative
  border-top: 1px solid $lightgray
  background: white
  whitespace: no-wrap
  overflow: hidden
  text-overflow: ellipsis
  
  transition: all .15s ease
  
  &:focus,
  &:hover,
  &:active
    @extend %active-label
    
  &:first-of-type
    border: 0
  
  &:before
    content: ""
    position: absolute
    left: 14px
    top: 14px
    width: 16px
    height: 16px
    border-radius: 50%
    border: 1px solid darken($lightgray, 5%)
  
  span
    color: darken($lightgray, 15%)
    font-weight: normal
    position: absolute
    left: 35%
  
  strong
    color: $blue
    text-align: right
    float: right
  

input:checked + label
  @extend %active-label
  
%active-label
  color: white
  background: $blue
  border-color: white
  
  span,
  strong
    color: white
    
  &:before
    left: 13px
    top: 13px
    width: 12px 
    height: 12px
    border: 4px solid white
    background: $blue
    
.most-chosen
  &:after
    content: "MOST CHOSEN"
    color: white
    font-size: 12px
    font-weight: normal
    background: #333
    position: absolute
    right: 12%
    top: 13px
    display: block
    padding: 5px 7px

    
button
  color: white
  background: $blue
  border: 0
  padding: 10px 15px
  float: right
    
  &:focus,
  &:hover,
  &:active
    background: #333
    outline: 0

p
  color: #666
    
a
  color: $blue
  
.footer
  text-align: center

    
      
      
@media all and (max-width: 1000px)
  .most-chosen:after
    content: none
      
      
      
@media all and (max-width: 800px)
  label
    padding-bottom: 35px
    
    &:before
      top: 25px
      
    span
      font-size: 14px
      display: block
      margin-top: 5px
      left: auto
  
  input:checked + label,
  label:focus,
  label:active,
  label:hover
    &:before
      top: 24px
    
  button
    width: 100%
    float: none

@media all and (max-width: 550px)
  label
    padding: 15px 10px 15px 50px
    
    &:before
      left: 14px
      top: 14px
      
    span
      display: none

  input:checked + label,
  label:focus,
  label:active,
  label:hover
    &:before
      left: 13px
      top: 13px
            
          
!
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.
Loading ..................

Console