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.

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="wrap">
	<div class="container">
		<h1>CSS COKE IS AWESOME</h1>
		<div class="txt">
			<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
			tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
			quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
			consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
			cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
			proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
			<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
			tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
			quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
			consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
			cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
			proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
			<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
			tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
			quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
			consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
			cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
			proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
			<p>本文是配合<a href="https://ithelp.ithome.com.tw/users/20112550/ironman/2623">此教學文章</a>使用的範例,但內容文字所提的都是真實的呦。</p>
		</div>
	</div>
</div>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&display=swap");
*{
	margin: 0;
	padding: 0;
	list-style: none;
}
.wrap{
	margin: 100px 0;
}
.container{
	width: 1200px;
	margin: auto;
	display: flex;
	position: relative;
	font-family: 'Noto Sans', sans-serif;
}
.container h1{
	width: 400px;
	flex-shrink: 0;
	box-sizing: border-box;
	order: 1;
	font-size: 90px;
	padding-left: 15px;
	color: #aaa;
	/*position: relative;*/
}
.container h1::before{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 200px;
	height: 200px;
	border:30px solid #F1b444;
	transform: rotate(10deg) translate(-30%, -30%);
	z-index: -1;
}
.container h1::after{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 200px;
	height: 200px;
	border:30px solid #F1C555;
	transform: rotate(17deg) translate(-30%, -30%);
	z-index: -1;
}
.container .txt{
	width: 800px;
	flex-shrink: 0;
	box-sizing: border-box;
	column-count: 2;
	column-gap: 30px;
	padding: 15px;
	box-shadow: 0 0 30px #ccc;
}
.container .txt p{
	margin-bottom: 1em;
}
.container .txt p:first-child:first-letter{
	font-size: 60px;
	float: left;
	padding-right: 10px;
}
              
            
!

JS

              
                
              
            
!
999px

Console