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


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.


  <li class="thead">
    <ol class="tr">
  <li class="tbody">
    <ol class="tr">
      <li data-title="序號">A2018010001</li>
      <li data-title="產品名稱">青醬佐番茄香煎烏骨雞腿義式千層麵</li>
      <li data-title="價格">NT.250</li>
      <li data-title="產品描述">獨家青醬、美濃橙蜜香番茄、特選烏骨雞腿、手桿義式千層麵</li>
    <ol class="tr">
      <li data-title="序號">A2018010002</li>
      <li data-title="產品名稱">墨魚汁佐迷迭香鮮蝦干貝天使麵</li>
      <li data-title="價格">NT.280</li>
      <li data-title="產品描述">西班牙進口墨魚汁、台灣無毒蝦、北海道干貝、特選天使細麵</li>


  padding: 0;
  margin: 0;
  list-style: none;
  box-sizing: border-box;
  width: 95%;
  display: block;
  margin: 1em auto;
  border-collapse: collapse;
.thead{display: table-header-group;}
.tr{display: table-row;}
.tbody{display: table-row-group;}
.thead li, .tr li{
  display: table-cell;
  padding: 5px;
  border: 1px solid #aaa;
.thead li{
  text-align: center;
  font-weight: bold;
  background: #e6f9ff;
  background: rgba(#6cffd1,.2);

@media only screen and (max-width:768px){
    display: none;
    display: block;
    border: #ddd 1px solid;
    margin-bottom: 5px;
  .tr li{
    display: inline-block;
    width: 100%;
    border: none;
  .tr li:before{
    content: attr(data-title);
    display: inline-block;
    width: auto;
    min-width: 20%;
    font-weight: 900;
    padding-right: 1rem;