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


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.


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


                @charset "utf-8";
@import url('');

* { margin: 0; padding: 0; }

: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 { 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);}