Pen Settings

HTML

CSS

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

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

              
                We want a green border for all .arve-thumbnail images. 

<htmll id=""><!-- for demo a id on the html or body can solve this mess -->
  <style id="stupid-theme-style">
    #content img {
      display: block;
      height: 200px;
      width: 200px;
      border: 50px solid red;
    }
  </style>
  <style class="wp-customizer-css">
    /* User fails to override style even with !important */
    .arve-thumbnail {
      border-color: green !important;
    }
    /* User could actually succeed like this */
    .arve-wrapper .arve-thumbnail {
      /* border-color: green !important; */
    }
  </style>
    
  <div id="content">

    <div class="arve-wrapper">
      <img class="arve-thumbnail" src="https://placekitten.com/500/500">
    </div>
      
    <div class="arve-wrapper">
      <img class="arve-thumbnail" src="https://placekitten.com/500/500">
    </div>
  
  </div>
  <style class="plugins styles loaded to the bottom">
    /* plugin does bad practice CSS and uses last resort !important to tackle stupid css '#content img'
    
    #content .arve-thumbnail could also work by but the plugins also can be used outside of the content. I could end up with.
    
    #header .arve-thumbnail,
    #sidebar .arve-thumbnail,
    #content .arve-thumbnail,
    #footer .arve-thumbnail ....
  
    and build a list of stupid styles a theme could potentialy use. So no thanks to both of this.
    
    */
    .arve-thumbnail {
      border-color: blue !important;
    }
  </style>
</htmll>

<a href="https://codepen.io/nnico/pen/gmyrNQ?editors=1000" target="_blank">See this for a solution</a>
              
            
!

CSS

              
                


              
            
!

JS

              
                
              
            
!
999px

Console