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

              
                <section>
  <div class="one_area">
    <div class="one_box">
      <p>ここはブルー指定</p>
    </div>
    <div class="one_box">
      <p>ここは透過指定<br><br>※ IE11で確認したところ、透過ではなくブルーになっていた。原因は、backgroundの色指定がrgbになっていた。<br><br>この場合の対応方法<br>rgb → rgba<br><br>なるほどなるほど。<br>と言いつつ最近はIEはスルーでオッケーになってきているのですが。<br>備忘録。</p>
    </div>
    <div class="one_box">
      <p>ここはブルー指定</p>
    </div>
  </div>

  <p class="_a"><a href="https://125naroom.com/web/3809" target="_blank" class="link">View the note</a></p>
</section>
              
            
!

CSS

              
                .one_area {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.one_area .one_box {
  width: 33.333%;
  background: #03a9f4;
}
.one_area .one_box:nth-child(2) {
  background: rgba(255, 255, 255, 0);/*IE11*/
  background: rgb(255 255 255 / 0%);
}
.one_area .one_box p {
  text-align: center;
  padding: 30px 15px;
}

/*-------
base
-------*/

body {
  font-family: YuGothic, "游ゴシック体", "Yu Gothic", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
  font-size: 14px;
  letter-spacing: .025em;
  line-height: 1.8;
  background: #ffeb3b;
}
section {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 20px;
}
section p._a {
  font-size: 12px;
  font-weight: bold;
  margin: 30px 0 0;
}
section p._a .link {
  display: inline-block;
  color: #607D8B;
  padding-left: 1.3em;
  text-indent: -1.3em;
}
section p._a .link:before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-top: 2px solid #607D8B;
  border-right: 2px solid #607D8B;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  margin-right: 10px;
}
              
            
!

JS

              
                
              
            
!
999px

Console