Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

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

Packages

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.

Behavior

Auto Save

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.

HTML

              
                
<div class="container mx-auto py-6 space-y-4">
  <form method="get" action="#" class="p-4">
    <div class="max-w-lg">
      <fieldset tabindex="0" class="rounded border relative p-0 pb-8">
        <legend class="bg-white ml-2 px-2">
          Tags
        </legend>

        <div class="max-h-52 overflow-scroll font-medium text-gray-700 normal-case pr-3 [counter-reset:checked] [counter-reset:total]">
          <input type="hidden" name="resource[tags][]" value="">

          <input type="checkbox" value="πŸ‡©πŸ‡ͺ (de)" class="relative rounded ml-4 mb-1 checked:[counter-increment:checked]" name="resource[tags][]" id="resource_tags_foo__de">
          <label class="inline-block w-[calc(100%-1rem)] py-1 -ml-6 pl-7 cursor-pointer hover:bg-gray-200 [counter-increment:total]" for="resource_tags_foo__de">
            πŸ‡©πŸ‡ͺ (de)
          </label>

          <input type="checkbox" value="πŸ‡·πŸ‡Ί (ru)" class="relative rounded ml-4 mb-1 checked:[counter-increment:checked]" name="resource[tags][]" id="resource_tags_foo__ru">
          <label class="inline-block w-[calc(100%-1rem)] py-1 -ml-6 pl-7 cursor-pointer hover:bg-gray-200 [counter-increment:total]" for="resource_tags_foo__ru">
            πŸ‡·πŸ‡Ί (ru)
          </label>

          <input type="checkbox" value="πŸ‡ΊπŸ‡Έ (en" class="relative rounded ml-4 mb-1 checked:[counter-increment:checked]" name="resource[tag][]" id="resource_tags_foo__en">
          <label class="inline-block w-[calc(100%-1rem)] py-1 -ml-6 pl-7 cursor-pointer hover:bg-gray-200 [counter-increment:total]" for="resource_tags_foo__en">
            πŸ‡ΊπŸ‡Έ (en)
          </label>

          <input type="checkbox" value="admin" class="relative rounded ml-4 mb-1 checked:[counter-increment:checked]" name="resource[tags][]" id="resource_tags_foo_admin">
          <label class="inline-block w-[calc(100%-1rem)] py-1 -ml-6 pl-7 cursor-pointer hover:bg-gray-200 [counter-increment:total]" for="resource_tags_foo_admin">
            admin
          </label>

          <input type="checkbox" value="automator" class="relative rounded ml-4 mb-1 checked:[counter-increment:checked]" name="resource[tags][]" id="resource_tags_foo_automator">
          <label class="inline-block w-[calc(100%-1rem)] py-1 -ml-6 pl-7 cursor-pointer hover:bg-gray-200 [counter-increment:total]" for="resource_tags_foo_automator">
            automator
          </label>

          <input type="checkbox" value="crowd-automator" class="relative rounded ml-4 mb-1 checked:[counter-increment:checked]" name="resource[tags][]" id="resource_tags_foo_crowd-automator">
          <label class="inline-block w-[calc(100%-1rem)] py-1 -ml-6 pl-7 cursor-pointer hover:bg-gray-200 [counter-increment:total]" for="resource_tags_foo_crowd-automator">
            crowd-automator
          </label>

          <input type="checkbox" value="csm" class="relative rounded ml-4 mb-1 checked:[counter-increment:checked]" name="resource[tags][]" id="resource_tags_foo_csm">
          <label class="inline-block w-[calc(100%-1rem)] py-1 -ml-6 pl-7 cursor-pointer hover:bg-gray-200 [counter-increment:total]" for="resource_tags_foo_csm">
            csm
          </label>

          <input type="checkbox" value="customer" class="relative rounded ml-4 mb-1 checked:[counter-increment:checked]" name="resource[tags][]" id="resource_tags_foo_customer">
          <label class="inline-block w-[calc(100%-1rem)] py-1 -ml-6 pl-7 cursor-pointer hover:bg-gray-200 [counter-increment:total]" for="resource_tags_foo_customer">
            customer
          </label>


          <div class="tabular-nums w-full absolute z-10 bottom-0 border-t bg-gray-100 rounded-b pl-4 h-8 flex items-center">
            <span class="after:content-[counter(checked)]">
              <span class="sr-only">Total checked:</span>
            </span>
            <span>/</span>
            <span class="after:content-[counter(total)]">
              <span class="sr-only">Total unchecked:</span>
            </span>
            <div class="hidden flex-1 px-2 flex justify-between">
              <button type="reset" value="clear">Clear</button>
              <button type="button">Select all</button>
            </div>
          </div>
        </div>
      </fieldset>
    </div>
  </form>
</div>

              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console