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

              
                  <details>
    <summary>
      반전 매력으로 돌아온 소녀시대
    </summary>
    <p>
    올 여름, 'PARTY'로 많은 사랑을 받은 소녀시대가 정규 5집 [Lion Heart]의 전곡 음원을 8월 18~19일 이틀 동안 순차적으로 공개하며 새로운 모습을 선보입니다. 이번 앨범을 통해 서로 상반된 분위기의 더블 타이틀 곡 'Lion Heart'와 'You Think'를 선보일 소녀시대! 소녀시대의 다채로운 매력을 극대화한 이번 정규 앨범소식을 네이버 뮤직을 통해 만나보세요! 
    </p>
  </details>
  <details>
    <summary>
      트와이스, 2월 20일 컴백
    </summary>
    <p>
  그룹 트와이스가 2월 20일 전격 컴백한다. 트와이스는 2일 0시 공식 SNS를 통해 티저 이미지를 공개하며 20일 컴백을 공식화했다.
    </p>
  </details>
              
            
!

CSS

              
                body {
  font-family: '나눔고딕','nanumgothic','돋움','dotum',san-serif;
  color: #333;
  font-size: 1.1em;
}

section {
  max-width: 500px;
}

details {
  background: #f0f0f0;
  padding: 20px;
  margin-bottom: 5px;
}

summary {
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
}
              
            
!

JS

              
                
              
            
!
999px

Console