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

              
                <div class="container">
<h1 id="fittext">[開箱] PICO輕巧隨身探色器!你說的白是什麼白讓PICO來告訴你</h1>
<p>顏色是一件無法用三二句言詞,就能將顏色清楚的表達出來,因此只是口中的一個紅,就有千百種的變化,而每人心中的紅色都有所不同,所以要讓對方能清楚的知道是那一個紅、那一個黃、那一個藍,最快的方法,就是找到實體的顏色,或是色票才能讓對方清楚的知道,原來你心中的紅是那一個紅。</p>
</div>
              
            
!

CSS

              
                body {
  background: #333; 
  color: #fff;
}
		
h1 {
	background: rgba(0,0,0,0.2);
	text-align: center;
	color:#fff;
  padding:20px;
}
              
            
!

JS

              
                $("#fittext").fitText(1.5, { minFontSize: '18px', maxFontSize: '48px' });
              
            
!
999px

Console