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

              
                <!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>説明リストタグのテスト</title>
  <link rel="stylesheet" href="https://unpkg.com/ress/dist/ress.min.css">
  <link rel="stylesheet" href="stylesheet.css">
</head>

<body>
  <h2>新着ニュース</h2>
  <dl class="wrapper">
    <dt>2021.9.XX</dt>
    <dd>雑誌「XXXXX Vol.32」に後楽園大会の詳細をレポートして頂きました</dd>
    <dt>2021.9.XX</dt>
    <dd>【ダイナマイトツアー Vol.4】大田区民ホール大会のチケット発売について</dd>
    <dt>2021.8.XX</dt>
    <dd>【地域貢献】YY小学校への表敬訪問の詳細をレポート</dd>
    <dt>2021.8.XX</dt>
    <dd>【IR情報】2021年度第2四半期の決算情報を開示</dd>
    <dt>2021.7.XX</dt>
    <dd>【テレビ出演】マスター・トム選手がテレビXX系バラエティ「食レポバンザイ」に出演</dd>
  </dl>
</body>

</html>
              
            
!

CSS

              
                .wrapper {
  max-width: 700px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  margin: 30px;
}

dl {
  display: flex;
  flex-wrap: wrap;
}

dt {
  width: 20%;
  padding: 15px 0;
  background-color: #dddddd;
  border-top: 1px solid #bbbbbb;
}

dd {
  width: 80%;
  padding: 15px 0;
  border-top: 1px solid #bbbbbb;
}

dt:last-of-type {
  border-bottom: 1px solid #bbbbbb;
}

dd:last-of-type {
  border-bottom: 1px solid #bbbbbb;
}
              
            
!

JS

              
                
              
            
!
999px

Console