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

              
                <html>
  <head>
  </head>
  <body>
    <!-- 까만 상자들에 관련된 코드입니다 -->
    <div class="color1"></div>
    <div class="color1 color2"></div>
    <div class="color1 color2" id="color3"></div>
    
    
    <!-- 이미지와 관련된 코드입니다. -->
    <main class="main"></main>
  </body>
</html>
              
            
!

CSS

              
                /*

  해보세요 ✅

  CSS에는 규칙이 있습니다.

  1) 문서의 위쪽보다 아래쪽에 작성된 CSS코드가 우선적으로 적용됩니다.
  2) 태그보다 클래스, 클래스보다 아이디 선택자에 작성된 CSS코드가 우선적으로 적용됩니다.

  이러한 규칙을 "cascading rule" 이라고 합니다.

  까만색의 상자들이 오른쪽에 있는 이미지와 같은 배경색을 가지도록
  각각의 💬을 적절한 값으로 고쳐주세요!

*/

div {
  width: 100px;
  height: 100px;
  
  background-color: black;
  border-bottom: 1px white solid;
}

.main {
  position: fixed;
  top: 8px;
  left: 120px;
  width: 100px;
  height: 303px;
  
  background-image: linear-gradient(
    olive 33.33%, 
    orangered 33.33%, 
    orangered 66.66%, 
    aqua 66.66%
  );
}

.💬 {
  background-color: olive;
}

.💬 {
  background-color: orangered;  
}

#💬 {
  background-color: aqua;
}

              
            
!

JS

              
                
              
            
!
999px

Console