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.

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

            
              .container.clearfix
  nav    
    ul
      li
        a(href="https://mike2014mike.github.io/") 首頁
      li
        a(href="https://mike2014mike.github.io/") 關於我們
      li
        a(href="https://mike2014mike.github.io/") 產品資訊
      li
        a(href="https://mike2014mike.github.io/") 服務項目
      li
        a(href="https://mike2014mike.github.io/") 聯絡我們
  section 這個例子和之前那個例子的結果一模一樣。請注意我們在容器上放了一個 clearfix 密技上去,原本在這個例子中是不需要的,但是當 nav 比這些「固定的」的內容(也就是那些沒有套用 float 的內容)還要高時就需要了。

            
          
!

CSS

            
              * {
  box-sizing: border-box;
}
.container {
  border: 2px solid #6AC5AC;  
}
.clearfix {
  overflow: auto; /*   clearfix 密技 */
}
nav {
  float: left;
  left: 0px;
  width: 200px;
  border: 2px solid #D64078;
}
section {
  /* position is static by default */
  margin-left: 200px;
  padding: 10px;
  border: 2px solid #FDC72F;
}

body {
  margin-bottom: 120px;
}
            
          
!

JS

            
              
            
          
!
999px

Console