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

              
                <div class="List">
  <div class="List-Item">
    <p class="List-Item-Title">社名</p>
    <p class="List-Item-Text">株式会社〇〇</p>
  </div>
  <div class="List-Item">
    <p class="List-Item-Title">所在地</p>
    <p class="List-Item-Text">〒000-0000 東京都港区〇〇</p>
  </div>
  <div class="List-Item">
    <p class="List-Item-Title">代表取締役</p>
    <p class="List-Item-Text">〇〇〇〇</p>
  </div>
  <div class="List-Item">
    <p class="List-Item-Title">設立</p>
    <p class="List-Item-Text">2020年1月1日</p>
  </div>
  <div class="List-Item">
    <p class="List-Item-Title">資本金</p>
    <p class="List-Item-Text">1,000,000円</p>
  </div>
  <div class="List-Item">
    <p class="List-Item-Title">事業内容</p>
    <ul class="List-Item-Ul">
      <li class="List-Item-Ul-Item">〇〇〇〇</li>
      <li class="List-Item-Ul-Item">〇〇〇〇</li>
      <li class="List-Item-Ul-Item">〇〇〇〇</li>
    </ul>
  </div>
</div>
              
            
!

CSS

              
                .List {
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  max-width: 650px;
}
@media screen and (max-width: 540px) {
  .List {
    margin-top: 24px;
  }
}
.List-Item {
  border-top: 1px solid #5bc8ac;
  display: flex;
}
.List-Item:first-child {
  border-top: none;
}
.List-Item-Title {
  width: 30%;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.8;
  font-weight: bold;
  font-size: 15px;
}
@media screen and (max-width: 540px) {
  .List-Item-Title {
    display: flex;
    align-items: center;
    font-size: 14px;
  }
}
.List-Item-Text {
  width: 70%;
  padding: 10px;
  line-height: 1.8;
  font-size: 15px;
}
.List-Item-Ul {
  width: 70%;
  padding: 10px;
  line-height: 1.8;
  list-style: none;
  font-size: 15px;
}
@media screen and (max-width: 540px) {
  .List-Item-Text {
    display: flex;
    align-items: center;
    font-size: 14px;
  }
  .List-Item-Ul {
    font-size: 14px;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console