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 class="post-body">
<pre class="html"><code>
&lt;nav id=&#039;nav-wrapper&#039; itemscope=&#039;itemscope&#039; itemtype=&#039;http://schema.org/SiteNavigationElement&#039; role=&#039;navigation&#039;&gt;
&lt;ul&gt;
&lt;li class=&#039;first&#039;&gt;&lt;a href=&#039;/&#039;&gt;&lt;span itemprop=&#039;name&#039;&gt;&lt;svg height=&#039;24&#039; viewBox=&#039;0 0 24 24&#039; width=&#039;24&#039;&gt;&lt;path d=&#039;M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10ZZ&#039;&gt;&lt;/path&gt;&lt;/svg&gt;Beranda&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&#039;/p/jasa-redesign.html&#039; title=&#039;Jasa Redesign&#039;&gt;&lt;svg class=&#039;jasaredesign&#039; style=&#039;width:24px;height:24px&#039; viewBox=&#039;0 0 24 24&#039;&gt;
&lt;path d=&#039;M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z&#039;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span&gt;Jasa Redesign&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&#039;nav-submenu&#039; href=&#039;javascript:;&#039; title=&#039;Topik Artikel&#039;&gt;&lt;span&gt;&lt;svg class=&#039;muter3&#039; height=&#039;24&#039; viewBox=&#039;0 0 24 24&#039; width=&#039;24&#039;&gt;
&lt;path d=&#039;M14.19,14.19L6,18L9.81,9.81L18,6M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,10.9A1.1,1.1 0 0,0 10.9,12A1.1,1.1 0 0,0 12,13.1A1.1,1.1 0 0,0 13.1,12A1.1,1.1 0 0,0 12,10.9ZZ&#039;&gt;&lt;/path&gt;&lt;/svg&gt;Topik&lt;span class=&#039;new&#039;&gt;News&lt;/span&gt;&lt;/span&gt;&lt;svg class=&#039;down&#039; height=&#039;24&#039; viewBox=&#039;0 0 24 24&#039; width=&#039;24&#039;&gt;&lt;path d=&#039;M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4M12,10.5A1.5,1.5 0 0,1 13.5,12A1.5,1.5 0 0,1 12,13.5A1.5,1.5 0 0,1 10.5,12A1.5,1.5 0 0,1 12,10.5M7.5,10.5A1.5,1.5 0 0,1 9,12A1.5,1.5 0 0,1 7.5,13.5A1.5,1.5 0 0,1 6,12A1.5,1.5 0 0,1 7.5,10.5M16.5,10.5A1.5,1.5 0 0,1 18,12A1.5,1.5 0 0,1 16.5,13.5A1.5,1.5 0 0,1 15,12A1.5,1.5 0 0,1 16.5,10.5ZZ&#039;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;</code></pre>
<pre class="css"><code>
wrapper,#wrapper{display:none}body,html{overflow:hidden}#ignielNoscript{background:rgba(0,0,0,.85);padding:0;position:fixed;bottom:0;left:0;top:-100px;right:0;z-index:1000;opacity:1;visibility:visible;height:auto}#ignielNoscript svg{width:100px;height:100px}#ignielNoscript svg path{fill:#fff}#ignielNoscript .isiNoscript{background:#008c5f;color:#fff;position:absolute;text-align:center;padding:0 30px 30px 30px;margin:auto;top:30%;left:0;right:0;font-size:1.5rem;font-weight:400;line-height:1.5em;font-family:monospace;max-width:670px;box-shadow:0 20px 10px -10px rgba(0,0,0,.15);border:15px solid rgba(0,0,0,.07);overflow:hidden;transition:all .6s cubic-bezier(.25,.8,.25,1);-webkit-transform:translateZ(0);transform:translateZ(0);backface-visibility:visible;transition:all .2s ease-in-out,visibility 0s;transform-origin:bottom center;pointer-events:auto;transform:rotateX(0) rotateY(0) rotateZ(0) scale(1);opacity:1;animation:ignielWobble .5s;-moz-animation:ignielWobble .5s;-webkit-animation:ignielWobble .5s;-o-animation:ignielWobble .5s}#ignielNoscript .isiNoscript:hover{box-shadow:0 20px 10px -10px rgba(0,0,0,.2)}#ignielNoscript .isiNoscript .judul,#ignielNoscript .isiNoscript h4{display:inline-block;background:rgba(0,0,0,.07);padding:5px 25px 15px 25px;font-size:2.2rem;font-weight:600;margin-bottom:20px}</code></pre>
<pre class="javascript"><code>
&lt;script type=&#039;text/javascript&#039;&gt; setTimeout(function(){$(&quot;.video-youtube&quot;).each(function(){$(this).replaceWith(&#039;&lt;iframe class=&quot;video-youtube loader&quot; src=&quot;&#039;+$(this).data(&quot;src&quot;)+&#039;&quot; allowfullscreen=&quot;allowfullscreen&quot; height=&quot;281&quot; width=&quot;500&quot;&gt;&lt;/iframe&gt;&#039;)})},5e3); &lt;/script&gt;
</code></pre>
<pre class="jquery"><code>
&lt;script&gt;//&lt;![CDATA[
            $(window).scroll(function(){200&lt;$(this).scrollTop()?$(&quot;#back-to-top&quot;).fadeIn():$(&quot;#back-to-top&quot;).fadeOut()}),$(&quot;#back-to-top&quot;).hide().click(function(){return $(&quot;html, body&quot;).animate({scrollTop:0},1e3),!1});
//]]&gt;
&lt;/script&gt;</code></pre>

</div>
              
            
!

CSS

              
                .post-body pre,
#comments pre {
    background-color: #292e34;
    border-left: 5px solid #008c5f;
    padding: 0;
    margin: 0.5em auto;
    position: relative;
    white-space: pre;
    word-wrap: break-word;
    word-break: normal;
    overflow: auto;
    -moz-tab-size: 2;
    -o-tab-size: 2;
    tab-size: 2;
    user-select: text;
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}
.post-body pre code,
#comments pre code {
    display: block;
    color: #bfbf90;
    font-size: 13px;
    max-height: 250px;
    padding: 10px 15px;
    line-height: 1.5em;
    white-space: pre;
    overflow: auto;
    user-select: text;
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
.post-body pre code span {
    color: #95b2f6;
    font-style: italic;
}
.post-body pre mark,
.post-body code mark,
.post-body pre code mark {
    background-color: #95b2f6;
    color: #292e34;
    margin: 0;
    padding: 0;
}
.post-body code,
.post-body code.tutor {
    color: #d85555;
    letter-spacing: -0.3px;
    font-size: 1em;
    user-select: text;
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
.post-body pre.html:before,
.post-body pre.css:before,
.post-body pre.javascript:before,
.post-body pre.jquery:before {
    background-color: #bde0b9;
    font: 500 14px "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Roboto", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
    color: #333333;
    display: block;
    padding: 10px 35px;
    font-size: 16px;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position-x: 7px;
    background-position-y: center;
}
.post-body pre.html:before {
    content: "HTML";
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12,17.56L16.07,16.43L16.62,10.33H9.38L9.2,8.3H16.8L17,6.31H7L7.56,12.32H14.45L14.22,14.9L12,15.5L9.78,14.9L9.64,13.24H7.64L7.93,16.43L12,17.56M4.07,3H19.93L18.5,19.2L12,21L5.5,19.2L4.07,3Z' fill='%231d2129'/%3E%3C/svg%3E");
}
.post-body pre.css:before {
    content: "CSS";
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5,3L4.35,6.34H17.94L17.5,8.5H3.92L3.26,11.83H16.85L16.09,15.64L10.61,17.45L5.86,15.64L6.19,14H2.85L2.06,18L9.91,21L18.96,18L20.16,11.97L20.4,10.76L21.94,3H5Z' fill='%231d2129'/%3E%3C/svg%3E");
}
.post-body pre.javascript:before {
    content: "Javascript";
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3,3H21V21H3V3M7.73,18.04C8.13,18.89 8.92,19.59 10.27,19.59C11.77,19.59 12.8,18.79 12.8,17.04V11.26H11.1V17C11.1,17.86 10.75,18.08 10.2,18.08C9.62,18.08 9.38,17.68 9.11,17.21L7.73,18.04M13.71,17.86C14.21,18.84 15.22,19.59 16.8,19.59C18.4,19.59 19.6,18.76 19.6,17.23C19.6,15.82 18.79,15.19 17.35,14.57L16.93,14.39C16.2,14.08 15.89,13.87 15.89,13.37C15.89,12.96 16.2,12.64 16.7,12.64C17.18,12.64 17.5,12.85 17.79,13.37L19.1,12.5C18.55,11.54 17.77,11.17 16.7,11.17C15.19,11.17 14.22,12.13 14.22,13.4C14.22,14.78 15.03,15.43 16.25,15.95L16.67,16.13C17.45,16.47 17.91,16.68 17.91,17.26C17.91,17.74 17.46,18.09 16.76,18.09C15.93,18.09 15.45,17.66 15.09,17.06L13.71,17.86Z' fill='%231d2129'/%3E%3C/svg%3E");
}
.post-body pre.jquery:before {
    content: "jQuery";
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22.88,10.41C20.77,12.18 17.61,11.9 15.84,9.79C14.06,7.67 14.34,4.5 16.45,2.75L16.96,2.37C15.27,4.19 15.16,7.03 16.8,9C18.43,10.94 21.25,11.32 23.34,9.97L22.88,10.41M21.1,14.5C17.93,17.17 13.2,16.76 10.54,13.58C7.87,10.41 8.29,5.68 11.46,3L12.38,2.36C9.96,5.09 9.84,9.26 12.26,12.14C14.68,15 18.8,15.63 21.91,13.72L21.1,14.5M19.97,19.38C15.53,23.11 8.9,22.53 5.17,18.08C1.45,13.64 2.03,7 6.47,3.29L7.58,2.5C4.07,6.3 3.85,12.23 7.28,16.32C10.71,20.4 16.59,21.22 20.96,18.43L19.97,19.38Z' fill='%231d2129'/%3E%3C/svg%3E");
}
              
            
!

JS

              
                
              
            
!
999px

Console