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


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


                <button id="dButton">Responsive Dialog</button>
<article class="markdown-body entry-content" itemprop="mainContentOfPage">
  <h1></a>jQuery UI Dialog Options v1.0</h1>

  <p>Additional options/functionality for jQuery UI Dialog.</p>

  <p>New Options:</p>

    <li> clickOut: true // closes dialog when clicked outside</li>
    <li> responsive: true // fluid width &amp; height based on viewport</li>
    <li> showTitleBar: true // hide titlebar when false</li>
    <li> showCloseButton: true // hide close button when false</li>

  <p>Added functionality:</p>

    <li> add &amp; remove dialogClass to .ui-widget-overlay for scoping styles</li>
    <li> patch for: <a href=""></a> - fixed in UI v1.10</li>
<p><a href="">Get it on github</a></p>


<div id="content_1" class="content_dialog">
  <p>Lorem ipsum dolor sit amet. Aliquam erat volutpat. Maecenas non tortor nulla, non malesuada velit.</p>
  <p>Aliquam erat volutpat. Maecenas non tortor nulla, non malesuada velit. Nullam felis tellus, tristique nec egestas in, luctus sed diam. Suspendisse potenti. </p>


                * { font-family: sans-serif; }
#content_1 { display: none; }



                $("#dButton").click(function () {

     width: 600,
    autoOpen: true,
    dialogClass: "test",
    modal: true,
    responsive: true