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

              
                <p class="initial-classical">Excited him now natural saw passage offices you minuter. At by asked being court hopes. Farther so friends am to detract. Forbade concern do private be. Offending residence but men engrossed shy. Pretend am earnest offered arrived company so on. Felicity informed yet had admitted strictly how you. Raising say express had chiefly detract demands she.</p>
		<p class="initial-script">Raising say express had chiefly detract demands she. Quiet led own cause three him. Front no party young abode state up. Saved he do fruit woody of to. Met defective are allowance two perceived listening consulted contained. It chicken oh colonel pressed excited suppose to shortly. He improve started no we manners however effects.</p>
		<p class="initial-first-line">Mankind and valley indeed so no wonder future nature vanity. Debating all she mistaken indulged believed provided declared. He many kept on draw lain song as same. Whether at dearest certain spirits is entered in to. Rich fine bred real use too many good. She compliment unaffected expression favourable any. Unknown chiefly showing to conduct no. Hung as love evil able to post at as.</p>
		<p class="initial-minimalism">Dorothy was these three and songs arose whose. Of in vicinity contempt together in possible branched. Assured company hastily looking garrets in oh. Most have love my gone to this so. Discovered interested prosperous the our affronting insipidity day. Missed lovers way one vanity wishes nay but. Use shy seemed within twenty wished old few regret passed.</p>
		<p class="initial-modern">Bad people are valley had silent eat merits esteem bed. In last an or went wise as left. Visited civilly am demesne so colonel he calling. So unreserved do interested increasing sentiments. Vanity day giving points within six not law. Few impression difficulty his use has comparison decisively. New the her nor case that lady paid read.</p>
		<p class="initial-neon">Even invitations and friendship travelling eat everything the out two. Shy you who scarcely expenses debating hastened resolved. Always polite moment on is warmth spirit it to hearts. Downs those still witty an balls so chief so. Moment an little remain no up lively no. Way brought may off our regular country towards adapted cheered.</p>
		<p class="initial-overlay">Smallest directly families surprise honoured am an. Speaking replying mistress him numerous she returned feelings may day. Evening way luckily son exposed get general greatly. Zealously prevailed be arranging do. Set arranging too dejection september happiness. Understood instrument or do connection no appearance do invitation. Dried quick round it or order. Add past see west felt did any. Say out noise you taste merry plate you share.</p>
              
            
!

CSS

              
                /*Load Font*/
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,400,900|Source+Serif+Pro:400|Pinyon+Script|Bungee+Outline|Alegreya|Alegreya+SC:700');

* {
	box-sizing: border-box;
}

html {
	font-size: 125%;
}

body {
	font-family: 'Source Serif Pro', Georgia, serif;
	margin: 0.8rem auto 8rem;
	padding: 1.6rem 0.8rem;
	max-width: 35rem;
	line-height: 1.6rem;
	color: #222;
}

p {
	margin: 0 0 4.8rem;
}




/* ## CLASSICAL ### */

.initial-classical::first-letter {
	font-size: 3.6em;
	float: left;
	line-height: 0.8;
	margin-top: 0.05em; /* for baseline alignment */
	margin-left: -0.05em; /* for optical alignment to the left */
	margin-right: 0.05em; /* for optical alignment to the right */
}




/* ## SCRIPT ### */

.initial-script::first-letter {
	font-family: "Pinyon Script";
	font-size: 4.4em;
	margin-right: -0.1em; /* to reduce the gap between the inital an the text */
	color: #7C3333;
}




/* ## FIRST LINE ### */

.initial-first-line {
	font-family: 'Alegreya';
	font-size: 1.1em;
}

.initial-first-line::first-line {
	font-family: 'Alegreya SC';
	font-weight: 700;
	letter-spacing: 0.03em;
}

.initial-first-line::first-letter {
	font-family: 'Alegreya';
	font-weight: 400;
	font-size: 5em;
	float: left;
	line-height: 0.5;
	margin-top: -0.08em;
	margin-left: -0.02em;
	margin-right: 0.05em;
}




/* ## MINIMALISM ### */

.initial-minimalism::first-letter {
	font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
	font-weight: 200;
	font-size: 4.2em;
	float: left;
	line-height: 0.8;
	padding: 0.05em 0.3em 0.1em;
}




/* ## MODERN ### */

.initial-modern::first-letter {
	text-transform: lowercase;
	font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
	font-weight: 200;
	font-size: 3.2em;
	float: left;
	line-height: 1.25;
	margin-right: 0.1em;
	margin-top: 0.075em;
	padding: 0 0.3em;
	background-color: rgba(50,39,117,1);
	border: 2px #fff solid;
	box-shadow: -7px 7px rgba(50,39,117,0.15);
	color: #fff;
}




/* ## NEON ### */

.initial-neon {
	font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
	padding-top: 1.8rem; /* to comensate negative margin-top of ::first-letter */
}

.initial-neon::first-letter {
	font-family: "Bungee Outline", "Arial Black", sans-serif;
	font-size: 6em;
	float: left;
	line-height: 0.8;
	margin-top: -1.8rem;
	margin-left: -0.05em;
	color:  rgba(222,31,232,1);
	text-shadow: 0 0 5px rgba(222,31,232,0.8);
}




/* ## OVERLAY ### */

.initial-overlay {
	font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
	padding-left: 3.2rem;
}

.initial-overlay::first-letter {
	font-weight: 900;
	font-size: 10.5em;
	float: left;
	line-height: 0.8;
	margin-top: -0.05em;
	margin-left: -3.2rem;
	margin-right: -1em;
	color: rgba(0,0,255,0.15);
	text-shadow: -0.03em 0.03em 0 rgba(255,0,0,0.15);
}
              
            
!

JS

              
                
              
            
!
999px

Console