Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <div>
  <h1>Prueba de ancho</h1> 
  <p>☝️ Ajustar el valor del ancho en el navegador de celular hasta que se vea bien 😉</p>
  <p>
    Copie la siguiente línea y peguela en el header del documento de su aplicación, esta línea evita que el celular realice zoom del archivo.
  </p>
  <pre class='code code-html'><label>HTML</label>
<code>
 &#x3C;meta name=&#x22;viewport&#x22; content=&#x22;width=device-width, initial-scale=1&#x22; /&#x3E;
</code>
</pre>
  <h3>Enlaces de interes</h3>
<ul>
  <li>
    <a href="https://www.toptal.com/responsive-web/introduction-to-responsive-web-design-pseudo-elements-media-queries">Diseño responsive</a>
  </li>
  <li>
    <a href="https://codepen.io/arlinadesign/pen/xboQQb">Estilos code pen</a>
  </li>
  <li>
    <a href="https://mothereff.in/html-entities">HTML to entities</a>
  </li>
</ul>
</div>
              
            
!

CSS

              
                /*Modifique el ancho luego pruebe en su celular*/
div{
  width:320px;
  height:440px;
  background:hotpink;
  overflow:auto;
}


/* 🚨 Estos estilos no se modifican para probar el ancho*/

body{
  font-family:sans-serif;
  background:#b2f7ef;
}
div{
  padding:10px;
  margin:0 auto;
}

/* CSS Simple Pre Code */
pre {
    background: #333;
    white-space: pre;
    word-wrap: break-word;
    overflow: auto;
}

pre.code {
    margin: 20px 25px;
    border-radius: 4px;
    border: 1px solid #292929;
    position: relative;
}

pre.code label {
    font-family: sans-serif;
    font-weight: bold;
    font-size: 13px;
    color: #ddd;
    position: absolute;
    left: 1px;
    top: 15px;
    text-align: center;
    width: 60px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

pre.code code {
    font-family: "Inconsolata","Monaco","Consolas","Andale Mono","Bitstream Vera Sans Mono","Courier New",Courier,monospace;
    display: block;
    margin: 0 0 0 60px;
    padding: 15px 16px 14px;
    border-left: 1px solid #555;
    overflow-x: auto;
    font-size: 13px;
    line-height: 19px;
    color: #ddd;
}

pre::after {
    content: "double click to selection";
    padding: 0;
    width: auto;
    height: auto;
    position: absolute;
    right: 18px;
    top: 14px;
    font-size: 12px;
    color: #ddd;
    line-height: 20px;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    transition: all 0.3s ease;
}

pre:hover::after {
    opacity: 0;
    visibility: visible;
}

pre.code-css code {
    color: #91a7ff;
}

pre.code-html code {
    color: #aed581;
}

pre.code-javascript code {
    color: #ffa726;
}

pre.code-jquery code {
    color: #4dd0e1;
}
              
            
!

JS

              
                
              
            
!
999px

Console