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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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 class="ca">
  <div class="fieldset d-flex sm-hidden">
    <p class="label no-margin">
      <strong id="label-5">Commutateur</strong><br>
      <span id="description-5">Permet de désactiver les styles sur le tableau.</span>
    <button type="button" class="ml-auto fw-400 no-border p-relative disable-css" role="switch" aria-checked="true" aria-labelledby="label-5" aria-describedby="description-5">

  <table class="pie table-charts">
    <caption>Répartition des scores des certifiés Opquast à Clever Age</caption>
        <th scope="col">Niveau de certifiés</th>
        <th scope="col">Score</th>
      <tr style="--color: #c74817">
        <th scope="row">Expert</th>
        <td style="--value: 30; --start: 0; --gt-25: 1;">
      <tr style="--color: #667d18">
        <th scope="row">Avancé</th>
        <td style="--value: 54; --start: 30; --gt-25: 1; --lt-50: 1; --gt-50: 1;">
      <tr style="--color: #127eb1">
        <th scope="row">Confirmé</th>
        <td style="--value: 16; --start: 84;">

  <p class="credit">Graphique par <a href="">ffoodd</a></p>


                .ca {
  .pie {
    max-width: 20em;
    margin: 0 auto;
    &.table-charts {
      padding-left: 4em;

  .table-charts {
    max-width: 35em;

  .credit {
    font-style: italic;
    text-align: center;
    margin: .5em 0 0;

  .fieldset {
    padding-bottom: 1em;
    padding-left: .5em;
    padding-right: .5em;

  .table-charts {
    thead {
      @extend .sr-only;

  .table-charts > caption:first-child {
    font-weight: bold;
  table > caption:first-child {
    font-weight: bold;
    font-style: normal;
    padding-top: 0;

  thead th, tbody th, thead td, tbody td {
    .pie & {
      border: 1px solid #666;

.sr-only {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px); 
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%); 
  height: 1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;


                document.addEventListener("DOMContentLoaded", function() {
  var switches = document.querySelectorAll('[role="switch"]');, function(el, i) {
    el.addEventListener("click", function() {
      var checked = this.getAttribute("aria-checked") == "true" || false;
      this.setAttribute("aria-checked", !checked);

      var chart = this.parentNode.nextElementSibling;