Pen Settings



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


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.


Auto Save

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.


    <h1>Disable iOS input zoom (CSS only)</h1>
    <p>It seems like the only way to prevent iOS from zooming in on input fields is to set a font size of minimum 16px... but what if I like 12px better?</p>

        <input type="text" value="zoom"><input type="text" class="no-zoom" value="zoom disabled">
    <p>To workaround this we set the font size to 16px and use transform scale (12px/16px = 0.75) to size everything
       down to a visual match of 12px addjusting margins to remove empty space caused by the transform.</p>
    <p>Please note that CSS transforms can cause problems with subpixel rendering (blurry borders and lighter colors).</p>
    <p>Open page in <a href="" target="_blank">debug mode</a>, <a href="" target="_blank">code mode</a> or scan the QR below:</p>   
   <img src='|2' alt=''>



                @import url('|Roboto+Condensed');
html{box-sizing: border-box;}
*,*:before,*:after {box-sizing:inherit;}
body {margin:16px;  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
article,fieldset {display:block;}
h1 { font-family: 'Raleway', sans-serif; color:tomato;  }
p  { font-family: 'Roboto Condensed', sans-serif; font-size:14px; }
article { max-width: 480px; margin:0 auto; }
fieldset {border:0;margin:24px 0 24px -12px;padding:0;text-align:center;font-size:0; }
input {margin:0 0 12px 12px; }
img { margin:16px auto; display:block; max-width: 100%;}
a {color: tomato; text-decoration: none;&:hover{text-decoration:underline;}}

input {
    vertical-align: top;
    appearance: none;
    border: 1px solid silver;
    border-radius: 5px;
    padding: 4px;
    width : 180px;
    height: 24px;    
    font-size: 12px; 
    outline: 0;
input:focus { border-color: skyblue; }

.no-zoom {
    font-size: 16px;
    transform-origin: top left;
    transform: scale(0.75);    //  12px / 16px

    //  size up
    width:  240px;             // 180px / 0.75
    height: 32px;              //  24px / 0.75
    padding      : 5.333333px; //   4px / 0.75
    border-radius: 6.666667px; //   5px / 0.75
    border-width : 1.333333px; //   1px / 0.75
    //  size down    
    margin-right: -60px;       // 240px * 0.25
    margin-bottom: -8px;       //  32px * 0.25