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

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.

HTML

              
                <h1>:indeterminate</h1>
<p>The :indeterminate pseudo-class applies to UI elements whose value is in an indeterminate state. In this page <mark style="background:coral"><u>coral and underline(border) is indeterminate style</u></mark>.</p>

<h2>Checkbox state demo</h2>
<form>
  <fieldset id="checkbox-field">
    <legend>true / false / indeterminate state</legend>
    <input type="checkbox" id="checkbox-true" checked>
    <label for="checkbox-true">TRUE</label>
    <input type="checkbox" id="checkbox-false">
    <label for="checkbox-false">FALSE</label>
    <br>
    <input type="checkbox" id="checkbox-indeterminate">
    <label for="checkbox-indeterminate">INDETERMINATE</label>
    ⬅️ <code>document.getElementById('...').indeterminate = true;</code>
  </fieldset>
  <br>
  <button id="checkbox-reset" type="reset">Reset checkbox</button>
</form>
<br>

<h2>Radio group state demo</h2>
<form>
  <fieldset id="radio-determinate-field">
    <legend>determinate state</legend>
    <input type="radio" id="radio-determinate-true" name="radio" checked>
    <label for="radio-determinate-true">TRUE</label>
    <input type="radio" id="radio-determinate-false" name="radio">
    <label for="radio-determinate-false">FALSE</label>
  </fieldset>
  <br>
  <fieldset id="radio-indeterminate-field">
    <legend>indeterminate state</legend>
    <input type="radio" id="radio-indeterminate-true" name="radio-indeterminate">
    <label for="radio-indeterminate-true">TRUE</label>
    <input type="radio" id="radio-indeterminate-false" name="radio-indeterminate">
    <label for="radio-indeterminate-false">FALSE</label>
  </fieldset>
  <br>
  <button id="radio-reset" type="reset">Reset radio</button>
</form>

<h2>Progress state demo</h2>
<p>determinate state: <progress value=".5">50%</progress> ⬅️ <code>&lt;progress value=".5"&gt;50%&lt;/progress&gt;</code></p>
<p>indeterminate state: <progress>Not known</progress> ⬅️ <code>&lt;progress&gt;Not known&lt;/progress&gt;</code></p>

              
            
!

CSS

              
                input:indeterminate + label { /* input + label indeterminate style */
  text-decoration: underline;
  background: coral;
}

progress { -webkit-appearance: none; appearance: none; }
progress::-webkit-progress-bar { background: silver; }
progress::-webkit-progress-value { background: blue; }

progress:indeterminate::-webkit-progress-bar { /* progress indeterminate style */
  background: coral;
  border-bottom: 1px solid;
}

              
            
!

JS

              
                document.getElementById('checkbox-indeterminate').indeterminate = true;

document.getElementById('checkbox-reset').addEventListener('click', () => {
  document.getElementById('checkbox-indeterminate').indeterminate = true;
});
              
            
!
999px

Console