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. 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

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

              
                  <p>
    Drag the following link to your Bookmarks bar to create a bookmarklet to change your cursor to 44×44 pixels square for testing WCAG Target Size and Pointer Target Spacing requirements (ref: <a href="https://adrianroselli.com/2019/06/target-size-and-2-5-5.html" target=_top">Target Size and 2.5.5</a>).
</p>
  <p>
    <a href="javascript:(function(){ var style = document.createElement(%27style%27), styleContent = document.createTextNode(%27* { cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJBJREFUeNrs2dEKgDAIhWEN3/+VLYtBF12MppHwDxY0uvg4DJpORcSl0bB4uPcwq+oFHu8/956pbtJsAAYMGDBgwIABA044t3pMEgb8VU2XsWdn1o/aUUn4bchPBWNFYWvVidxbCFGmr7YULBs1YDPfsYcXEi9ryvDjAAwYMGDAgAED7nK8bHG7qNLs6nYXYAAheh5j8Qw5fwAAAABJRU5ErkJggg==) 22 22, auto !important}%27); style.appendChild(styleContent ); var caput = document.getElementsByTagName(%27head%27); caput[0].appendChild(style); document.onkeydown=function(e){var n;(%27key%27in(e=e||window.event)?%27Escape%27==e.key||%27Esc%27==e.key:27==e.keyCode)&&(n=document.createElement(%27style%27),document.head.appendChild(n),n.sheet.insertRule(%27*{cursor:revert !important}%27,0))}; })();">44×44 Cursor, with Esc</a>
    </p>
<p>
I forked Jared’s post and added a feature — you can press <kbd>Esc</kbd> and CSS gets added to set the cursor to <code>revert</code>. Obviously there is some risk to using <kbd>Esc</kbd>, but I figure for testing it is fine, until it is not, and then you can customize it to a key or combination that works for you. A better solution is to destroy the CSS block entirely, but I have to go make dinner.
</p>

<p>
  Note your browser's Content Security Policy may prevent the script from modifying a page, in which case you can run it in the browser console. In Firefox use <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>K</kbd>, In Chrome use <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>J</kbd>.
</p>
              
            
!

CSS

              
                body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.4;
  /*   line-height: 1.5; */
  /*   letter-spacing: 0.12em; */
  /*   word-spacing: 0.16em; */
}
              
            
!

JS

              
                // document.onkeydown = function(evt) {
//   evt = evt || window.event;
//   var isEscape = false;
//   if ("key" in evt) {
//     isEscape = evt.key == "Escape" || evt.key == "Esc";
//   } else {
//     isEscape = evt.keyCode == 27;
//   }
//   if (isEscape) {
//     var a=document.createElement('style'),b;
//     document.head.appendChild(a);
//     b=a.sheet;
//     b.insertRule('*{cursor:revert !important}',0);
//   }
// };

// document.onkeydown=function(e){var n;("key"in(e=e||window.event)?"Escape"==e.key||"Esc"==e.key:27==e.keyCode)&&(n=document.createElement("style"),document.head.appendChild(n),n.sheet.insertRule("*{cursor:revert !important}",0))};
              
            
!
999px

Console