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

              
                <!DOCTYPE html>
<head>
	<title>Type Stylings for Crimson Text</title>
	<meta charset="UTF-8">
	<link rel="stylesheet" type="text/css" href="/css/normalize.css">
	<link href="https://fonts.googleapis.com/css?family=Crimson+Text:400,600,600i,700" rel="stylesheet">
	<style >
		html {
			font-family: 'Crimson Text', serif;
			font-size: 62.5%;
			font-weight: normal;
		}

		body {
			font-size: 14px;
			font-size: 1.4rem;

		}
		h1 {
			font-size: 52px;
    		font-size: 5.2rem;
    		font-weight: 600;
		}
		h2 {
			font-size: 32px;
    		font-size: 3.2rem;
    		font-weight: 600;
		}
		h3 {
			font-size: 24px;
    		font-size: 2.4rem;
    		line-height: 1em;
    		font-weight: 600;
		}
		h4 {
			font-size: 16px;
    		font-size: 1.6rem;
    		line-height: .5em;
    		font-weight: 600;
		}

		.container1 {
			margin: auto;
			width: 50%;
		}
		.container2 {
			padding: 2em;

		}

	</style>
	
</head>

<body>
<div class="container1">
<div class="container2">
<h1>Crimson Text</h1>
<h3>font-family: 'Crimson Text';</h3>
<h3>font-size: 24px;</h3>
</div>

<div class="container2">
<h2>Font Weight</h2>
<h4>font-weight: normal;</h4>
<h3>Look, man, I ain't fallin' for no banana in my tailpipe!</h3>

<h4>font-weight: bold;</h4>
<h3 style="font-weight: 700;">Look, man, I ain't fallin' for no banana in my tailpipe!</h3>
</div>

<div class="container2">
<h2>Font Style</h2>
<h4>font-style: normal;</h4>
<h3>Look, man, I ain't fallin' for no banana in my tailpipe!</h3>

<h4>font-style: italic;</h4>
<h3 style="font-style: italic;">Look, man, I ain't fallin' for no banana in my tailpipe!</h3>
</div>

<div class="container2">
<h2>Letter Spacing</h2>
<h4>letter-spacing: normal;</h4>
<h3 style="letter-spacing: normal;">Look, man, I ain't fallin' for no banana in my tailpipe!</h3>

<h4>letter-spacing: .3em;</h4>
<h3 style="letter-spacing: .3em;">Look, man, I ain't fallin' for no banana in my tailpipe!</h3>

<h4>letter-spacing: -.06em;</h4>
<h3 style="letter-spacing: -.06em;">Look, man, I ain't fallin' for no banana in my tailpipe!</h3>
</div>

<div class="container2">
<h2>Text Decoration</h2>
<h4>text-decoration: none;</h4>
<h3>Look, man, I ain't fallin' for no banana in my tailpipe!</h3>

<h4>text-decoration: underline;</h4>
<h3 style="text-decoration: underline;">Look, man, I ain't fallin' for no banana in my tailpipe!</h3>

<h4>text-decoration: line-through;</h4>
<h3 style="text-decoration: line-through;">Look, man, I ain't fallin' for no banana in my tailpipe!</h3>

<h4>text-decoration: overline;</h4>
<h3 style="text-decoration: overline;">Look, man, I ain't fallin' for no banana in my tailpipe!</h3>
</div>

<div class="container2">
<h2>Text Transform</h2>
<h4>text-transform: none;</h4>
<h3>Look, man, I ain't fallin' for no banana in my tailpipe!</h3>

<h4>text-transform: uppercase;</h4>
<h3>LOOK, MAN, I AIN'T FALLIN' FOR NO BANANA IN MY TAILPIPE!</h3>

<h4>text-transform: lowercase;</h4>
<h3>look, man, i ain't fallin' for no banana in my tailpipe!</h3>

<h4>text-transform: capitalize;</h4>
<h3>Look, Man, I Ain't Fallin' For No Banana In My Tailpipe!</h3>
</div>

<div class="container2">
<h2>By Eric Moe</h2>
</div>

</div>
</body>

              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console