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

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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <body>
    <div class="box1">
        <h3>:ROOT 에 대해 알아봅시다</h3>
        <p>:root를 사용하면 편리한 스타일 관리를 진행할 수 있습니다.</p>
    </div>
    <div class="box2">
        <p class="p1">같은 변수를 적용시킨 root 값을 조작하여 관리합니다.</p>
        <p class="p2">이런식으로 말입니다.</p>
        <p>얼마든지 원하는 스타일로 표현할 수 있습니다.</p>
    </div>
</body>
              
            
!

CSS

              
                @charset "utf-8";
@import url('https://fonts.googleapis.com/css?family=Nanum+Gothic');

/*RESET*/
* { margin: 0; padding: 0; }

/*ROOT*/
:root {
    --div-main-color: #555;
    --div-width: 100%;
    --div-height: auto;
    --div-padding: 20px;
    --h3-color: #ff0808;
    --p1-color: #0032d9;
    --p2-color: #c737bc;
    --box1-bg-color: #ffdfdf;
    --box2-bg-color: #d8eeff;
}

/*BODY*/
body { padding: 20px; font: 17px 'Nanum Gothic', sans-serif; }

div {
    width: var(--div-width);
    height: var(--div-height);
    margin: 20px 0;
    padding: var(--div-padding);
    box-sizing: border-box;
    text-align: center;
    color: var(--div-main-color);
}

.box1 {background-color: var(--box1-bg-color);}
.box2 {background-color: var(--box2-bg-color);}

h3 {margin: 10px 0; color: var(--h3-color);}

p {line-height: 2em;}

.p1 {color: var(--p1-color);}
.p2 {color: var(--p2-color);}
              
            
!

JS

              
                
              
            
!
999px

Console