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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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="container">
  <p>透過率0%</p>
  <p>透過率5%</p>
  <p>透過率10%</p>
  <p>透過率15%</p>
  <p>透過率20%</p>
  <p>透過率25%</p>
  <p>透過率30%</p>
  <p>透過率35%</p>
  <p>透過率40%</p>
  <p>透過率45%</p>
  <p>透過率50%</p>
  <p>透過率55%</p>
  <p>透過率60%</p>
  <p>透過率65%</p>
  <p>透過率70%</p>
  <p>透過率75%</p>
  <p>透過率80%</p>
  <p>透過率85%</p>
  <p>透過率90%</p>
  <p>透過率95%</p>
  <p>透過率100%</p>
</div>
              
            
!

CSS

              
                .container {
  margin-top: 50px;
}
p {
  font-size: 20px;
  text-align: center;
  font-weight: 700;
}
p:nth-of-type(1) {
  color: #ff0000ff;
}
p:nth-of-type(2) {
  color: #ff0000f2;
}
p:nth-of-type(3) {
  color: #ff0000e6;
}
p:nth-of-type(4) {
  color: #ff0000d9;
}
p:nth-of-type(5) {
  color: #ff0000cc;
}
p:nth-of-type(6) {
  color: #ff0000bf;
}
p:nth-of-type(7) {
  color: #ff0000b3;
}
p:nth-of-type(8) {
  color: #ff0000a6;
}
p:nth-of-type(9) {
  color: #ff000099;
}
p:nth-of-type(10) {
  color: #ff00008c;
}
p:nth-of-type(11) {
  color: #ff000080;
}
p:nth-of-type(12) {
  color: #ff000073;
}
p:nth-of-type(13) {
  color: #ff000066;
}
p:nth-of-type(14) {
  color: #ff000059;
}
p:nth-of-type(15) {
  color: #ff00004D;
}
p:nth-of-type(16) {
  color: #ff000040;
}
p:nth-of-type(17) {
  color: #ff000033;
}
p:nth-of-type(18) {
  color: #ff000026;
}
p:nth-of-type(19) {
  color: #ff00001A;
}
p:nth-of-type(20) {
  color: #ff00000D;
}
p:nth-of-type(21) {
  color: #ff000000;
}
              
            
!

JS

              
                
              
            
!
999px

Console