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

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

              
                
<div class="wrap">
  <div class="menu">
    <img src="https://hexschool.github.io/flexImgUrl/3/logo.png" alt="logo">
    <ul class="nav">
      <li><a href="#">回到首頁</a></li>
      <li><a href="#">關於我們</a></li>
      <li><a href="#">熱銷產品</a></li>
      <li><a href="#">購物車</a></li>
    </ul>
  </div>
  <div class="content">
    <h3>母親節限定</h3>
    <p>從冰箱取出後,室溫放置10~15分鐘後再品嚐,風味更佳。綿密的口感適合搭配紅茶、綠茶或咖啡一起食用。冰冰的食用,風味更佳。如為冷凍保存,建議置於冷藏解凍6-8小時,請連同乳酪及蛋糕體切取品嚐,感受最有層次的風味。適合搭配清爽茶飲或咖啡一起食用。</p>
    <p>請於室溫1.5小時內放入冰箱冷藏保存,如冷藏保存需於3天內食用完畢,如冷凍保存需於7天內食用完畢,以確保蛋糕新鮮美味。</p>
    <div class="photo">
      <img src="https://hexschool.github.io/flexImgUrl/3/pic.png" alt="">
      <img src="https://hexschool.github.io/flexImgUrl/3/pic.png" alt="">
      <img src="https://hexschool.github.io/flexImgUrl/3/pic.png" alt="">
      <img src="https://hexschool.github.io/flexImgUrl/3/pic.png" alt="">
      <img src="https://hexschool.github.io/flexImgUrl/3/pic.png" alt="">
      <img src="https://hexschool.github.io/flexImgUrl/3/pic.png" alt="">
    </div>
  </div>
</div>

              
            
!

CSS

              
                .wrap {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
}
.menu {
  background: #e7eeea;
  width: 300px;
  padding: 64px 8px 0px 8px;
/*   flex-shrink: 0; */
}
.menu img {
  max-width: 100%;
}
.menu a {
  display: block;
  color: #37534d;
  font-weight: 700;
  text-decoration: none;
  padding: 15px;
  text-align: center;
}
.menu a:hover {
  color: #e7eeea; 
  background: #37534d;
}
.content {
  width: 900px;
  padding: 64px 88px;
}
.content h3 {
  color: #37534d;
  font-size: 28px;
  font-weight: 800;
}
.content p{
  line-height: 1.5;
  margin-top: 16px;
}
.photo {
  margin-top: 16px;
}
              
            
!

JS

              
                
              
            
!
999px

Console