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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <article class="main-article">
	<h1>金魚都懂的 CSS 選取器</h1>
	<p>金魚都懂的 CSS 選取器是一個免費的 CSS 選取器教學文章,內容不僅講解 CSS 選取器的原理,還用淺顯易懂的舉例及實務的範例講解各式的應用,讓你不僅理解 CSS 選取器的原理外還能學會實務應用,看到簡直賺到啊。</p>
	<p>上面這段文字把我的腦力擠完了,這段文字我就不打算掰太多內容了,各位就認真接下來的選取器吧,還有! 記得訂閱!</p>
	<p>本例子請搭配 <a href="https://ithelp.ithome.com.tw/articles/10226209">iT邦幫忙 第11屆鐵人賽 - :first-of-type & :last-of-type 首項分類與尾首分類選取器 - 一個不會讓你看錯男女的選取器</a> 一起看才會理解。</p>
</article>
            
          
!

CSS

            
              @import url("https://fonts.googleapis.com/css?family=Noto+Sans+TC:100,300,400,500,700,900&display=swap");
h1{
	font-size: 42px;
	margin-bottom: 1em;
	font-family: 'Noto Sans TC', sans-serif;
}
.main-article{
	width: 500px;
	margin: auto;
}
.main-article p{
	margin-bottom: 1.5em;
	line-height: 1.5;
	font-family: 'Noto Sans TC', sans-serif;
}
.main-article p:first-of-type:first-letter{
	font-size: 38px;
	float: left;
	color: red;
	margin: 0 6px 6px 0;
}
            
          
!

JS

            
              
            
          
!
999px

Console