css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

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.

            
              <div id="wrap">


	<h1 id="masthead" class="clearfix">
		<span class="times"><span>Times</span></span>
		<span class="new"><span>N e w</span></span>
		<span class="roman"><span>Roman</span></span>
	</h1> <!-- /#masthead -->

	<p id="tagline">the quintessential serif typeface</p>

	<div id="info" class="clearfix">
		<div id="history">
			<h2>History</h2>

			<p>Times Roman was originally created by Stanley Morison for the British newspaper <em>The Times</em> in the early 1930&#8217;s. After criticizing the newspaper for its poor legibility, Morison was then commiss- ioned to produce a better typeface that was easier to read. Victor Laurent, an draftsman at the Times, is credited as the artist who drew the letter-forms, although there is speculation that he was the app- ropriate credit. Morison used an older font named Plantin as the basis for his design, but made revisions for legibility and economy of space.</p>

			<p>Times New Roman has reached ubiquity in the digital medium, since Microsoft has included it as a default typeface for its Windows operating system, since version 3.1 in the early 1990&#8217;s. </p>
			
		</div>
		
		<div>
			<h2>Stanley Morison</h2>
			<p>Stanley Morison (6 May 1889&#8212;11 October 1967) was an English typographer, designer and historian of printing.</p>
				
			<p>From 1923 to 1967 Morison was the typographic advisor for the Monotype Corporation. In the 1920s and 1930s, his work at Monotype included research and adaptation of historic typefaces, including the revival of the Baskerville and Bembo types. He pioneered the great expansion of the company&#8217;s range of typefaces and hugely influenced the field of typography to the present day.</p>
		

 
		</div>
	</div> <!-- /#info -->

	<div id="chars" class="clearfix">
		<div id="reg" class="drawer clearfix">
			<div class="uppercase clearfix">
				<span>a</span>
				<span>b</span>
				<span>c</span>
				<span>d</span>
				<span>e</span>
				<span>f</span>
				<span>g</span>
				<span>h</span>
				<span>i</span>
				<span>j</span>
				<span>k</span>
				<span>l</span>
				<span>m</span>
				<span>n</span>
				<span>o</span>
				<span>p</span>
				<span>q</span>
				<span>r</span>
				<span>s</span>
				<span>t</span>
				<span>u</span>
				<span>v</span>
				<span>w</span>
				<span>x</span>
				<span>y</span>
				<span>z</span>
				<span>0</span>
				<span>1</span>
				<span>2</span>
				<span>3</span>
				<span>4</span>
				<span>5</span>
				<span>6</span>
				<span>7</span>
				<span>8</span>
				<span>9</span>
				<span>&amp;</span>
				<span>!</span>
				<span>?</span>
			</div>
		
			<div class="lowercase clearfix">
				<span>a</span>
				<span>b</span>
				<span>c</span>
				<span>d</span>
				<span>e</span>
				<span>f</span>
				<span>g</span>
				<span>h</span>
				<span>i</span>
				<span>j</span>
				<span>k</span>
				<span>l</span>
				<span>m</span>
				<span>n</span>
				<span>o</span>
				<span>p</span>
				<span>q</span>
				<span>r</span>
				<span>s</span>
				<span>t</span>
				<span>u</span>
				<span>v</span>
				<span>w</span>
				<span>x</span>
				<span>y</span>
				<span>z</span>
				<span>&para;</span>
				<span>,</span>
				<span>:</span>
				<span>;</span>
				<span>@</span>
				<span>*</span>
				<span>$</span>
				<span>%</span>
				<span>#</span>
				<span>&#8220;</span>
				<span>&#8221;</span>
				<span>&#189;</span>
				<span>&copy;</span>
			</div>
		</div> <!-- /.drawer -->

		<div id="ital" class="drawer clearfix">
			<div class="uppercase clearfix">
				<span>a</span>
				<span>b</span>
				<span>c</span>
				<span>d</span>
				<span>e</span>
				<span>f</span>
				<span>g</span>
				<span>h</span>
				<span>i</span>
				<span>j</span>
				<span>k</span>
				<span>l</span>
				<span>m</span>
				<span>n</span>
				<span>o</span>
				<span>p</span>
				<span>q</span>
				<span>r</span>
				<span>s</span>
				<span>t</span>
				<span>u</span>
				<span>v</span>
				<span>w</span>
				<span>x</span>
				<span>y</span>
				<span>z</span>
				<span>0</span>
				<span>1</span>
				<span>2</span>
				<span>3</span>
				<span>4</span>
				<span>5</span>
				<span>6</span>
				<span>7</span>
				<span>8</span>
				<span>9</span>
				<span>&amp;</span>
				<span>!</span>
				<span>?</span>
			</div>
		
			<div class="lowercase clearfix">
				<span>a</span>
				<span>b</span>
				<span>c</span>
				<span>d</span>
				<span>e</span>
				<span>f</span>
				<span>g</span>
				<span>h</span>
				<span>i</span>
				<span>j</span>
				<span>k</span>
				<span>l</span>
				<span>m</span>
				<span>n</span>
				<span>o</span>
				<span>p</span>
				<span>q</span>
				<span>r</span>
				<span>s</span>
				<span>t</span>
				<span>u</span>
				<span>v</span>
				<span>w</span>
				<span>x</span>
				<span>y</span>
				<span>z</span>
				<span>&para;</span>
				<span>,</span>
				<span>:</span>
				<span>;</span>
				<span>@</span>
				<span>*</span>
				<span>$</span>
				<span>%</span>
				<span>#</span>
				<span>&#8220;</span>
				<span>&#8221;</span>
				<span>&#189;</span>
				<span>&copy;</span>
			</div>
		</div> <!-- /#ital .drawer -->

		<div id="bold" class="drawer clearfix">
			<div class="uppercase clearfix">
				<span>a</span>
				<span>b</span>
				<span>c</span>
				<span>d</span>
				<span>e</span>
				<span>f</span>
				<span>g</span>
				<span>h</span>
				<span>i</span>
				<span>j</span>
				<span>k</span>
				<span>l</span>
				<span>m</span>
				<span>n</span>
				<span>o</span>
				<span>p</span>
				<span>q</span>
				<span>r</span>
				<span>s</span>
				<span>t</span>
				<span>u</span>
				<span>v</span>
				<span>w</span>
				<span>x</span>
				<span>y</span>
				<span>z</span>
				<span>0</span>
				<span>1</span>
				<span>2</span>
				<span>3</span>
				<span>4</span>
				<span>5</span>
				<span>6</span>
				<span>7</span>
				<span>8</span>
				<span>9</span>
				<span>&amp;</span>
				<span>!</span>
				<span>?</span>
			</div>
		
			<div class="lowercase clearfix">
				<span>a</span>
				<span>b</span>
				<span>c</span>
				<span>d</span>
				<span>e</span>
				<span>f</span>
				<span>g</span>
				<span>h</span>
				<span>i</span>
				<span>j</span>
				<span>k</span>
				<span>l</span>
				<span>m</span>
				<span>n</span>
				<span>o</span>
				<span>p</span>
				<span>q</span>
				<span>r</span>
				<span>s</span>
				<span>t</span>
				<span>u</span>
				<span>v</span>
				<span>w</span>
				<span>x</span>
				<span>y</span>
				<span>z</span>
				<span>&para;</span>
				<span>,</span>
				<span>:</span>
				<span>;</span>
				<span>@</span>
				<span>*</span>
				<span>$</span>
				<span>%</span>
				<span>#</span>
				<span>&#8220;</span>
				<span>&#8221;</span>
				<span>&#189;</span>
				<span>&copy;</span>
			</div>
		</div> <!-- /#bold .drawer -->

		<div id="bold_ital" class="drawer clearfix">
			<div class="uppercase clearfix">
				<span>a</span>
				<span>b</span>
				<span>c</span>
				<span>d</span>
				<span>e</span>
				<span>f</span>
				<span>g</span>
				<span>h</span>
				<span>i</span>
				<span>j</span>
				<span>k</span>
				<span>l</span>
				<span>m</span>
				<span>n</span>
				<span>o</span>
				<span>p</span>
				<span>q</span>
				<span>r</span>
				<span>s</span>
				<span>t</span>
				<span>u</span>
				<span>v</span>
				<span>w</span>
				<span>x</span>
				<span>y</span>
				<span>z</span>
				<span>0</span>
				<span>1</span>
				<span>2</span>
				<span>3</span>
				<span>4</span>
				<span>5</span>
				<span>6</span>
				<span>7</span>
				<span>8</span>
				<span>9</span>
				<span>&amp;</span>
				<span>!</span>
				<span>?</span>
			</div>
		
			<div class="lowercase clearfix">
				<span>a</span>
				<span>b</span>
				<span>c</span>
				<span>d</span>
				<span>e</span>
				<span>f</span>
				<span>g</span>
				<span>h</span>
				<span>i</span>
				<span>j</span>
				<span>k</span>
				<span>l</span>
				<span>m</span>
				<span>n</span>
				<span>o</span>
				<span>p</span>
				<span>q</span>
				<span>r</span>
				<span>s</span>
				<span>t</span>
				<span>u</span>
				<span>v</span>
				<span>w</span>
				<span>x</span>
				<span>y</span>
				<span>z</span>
				<span>&para;</span>
				<span>,</span>
				<span>:</span>
				<span>;</span>
				<span>@</span>
				<span>*</span>
				<span>$</span>
				<span>%</span>
				<span>#</span>
				<span>&#8220;</span>
				<span>&#8221;</span>
				<span>&#189;</span>
				<span>&copy;</span>
			</div>
		</div> <!-- /.drawer -->

	
	</div> <!-- /#chars -->
	
	
	<blockquote id="marcus" class="clearfix" cite="http://classics.mit.edu/Antoninus/meditations.3.three.html">
		<p>
			
			<span class="workest">
				<span class="lquo">&#8220;</span>
			If thou workest</span>
			<span class="beforethee">at that which is before thee,</span>
			<span class="following">following right reason</span>
			<span class="seriously"><span class="smallcaps">seriously,</span> <strong>vigorously,</strong> <em>calmly,</em></span>
			<span class="allowing">without allowing anything else to distract thee,</span>
			<span class="divine">but keeping thy <em>divine</em> part pure,</span>
			<span class="shouldst">as if thou shouldst be bound to</span>
			<span class="giveback">give it back immediately;</span>
			<span class="holdest">If thou holdest to this,</span>
			<span class="expecting">expecting nothing,</span>
			<span class="fearing">fearing nothing,</span>
			<span class="satisfied">but satisfied with thy present activity</span>
			<span class="according">according to nature,</span>
			<span class="heroic">and with <em>heroic truth</em></span>
			<span class="every">in every word and sound</span>
			<span class="utterest">which thou utterest,</span> 
			<span class="livehappy">thou wilt live happy.</span> 
			<span class="noman">And there is no man</span>
			<span class="prevent">who is able to prevent this.
				<span class="rquo">&#8221;</span>
			</span>
		</p>
		<p><cite>Marcus Aurelius</cite></p>
	</blockquote>


</div> <!-- /#wrap -->

            
          
!
            
              

/* YUI reset */
html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}del,ins{text-decoration:none;}

/* -- re-reset -- */

strong { font-weight: bold; }
em { font-style: italic; }
.smallcaps { font-variant: small-caps; }

#old {
  display: none;
}

html {
  background: #FFF;
  color: #222;
}

body {
  font-family: Times New Roman, serif;
}

#wrap {
  width: 640px;
  margin: 20px auto;
  background: hsla(150, 100%, 50%, .0);
}


h1 {
  margin-top: 2.0em;
  text-transform: uppercase;
  font-size: 1.34em;
  margin-bottom: 0.8em;
}

h1 > span {
  display: block;
  float: left;
}
h1 span span {
}

.times {
  display: block;
  height: 0.73em;
  line-height: 0.9em;
  text-indent: -0.015em;
  font-size: 10.4em;
  letter-spacing: -0.01em;
  padding-right: 0.1em;
  background: hsla(0,100%,50%, .0);
}

.new {
  font-size: 3.5em;
  width: 0.7em;
  text-align: center;
  line-height: 0.5em;
  clear: left;
  text-transform: lowercase;
  font-style: italic;
  display: block;
  background: hsla(0,0%,0%, .0);
}
.new span {
  position: relative;
  top: 0.1em;
  left: -0.05em;
}

.roman {
  background: hsla(0,0%,0%, .0);
  text-indent: -0.05em;
  font-size: 8.1em;
  letter-spacing: -0.11em;
  font-weight: bold;
  display: block;
  height: 0.73em;
  line-height: 0.9em;
  float: left;
}

#tagline {
  border-top: 4px solid;
  padding: 0.2em 0;
  border-bottom: 2px solid;
  text-align: center;
  clear: both;
  font-variant: small-caps;
  letter-spacing: 0.4em;
  font-size: 1.37em;
  margin-bottom: 0.8em;
}
#tagline span {
  font-variant: normal;
  font-style: italic;
  letter-spacing: 0;
}
	
/* -- Info -- */

#info {
  margin-bottom: 0.8em;
}

#info:after {
  content: "";
  display: block;
  width: 0;
  height: 0;
}

#info div {
  width: 310px;
  float: left;
}

#history {
  margin-right: 20px;
}

#info h2 {
  font-size: 2.4em;
  font-weight: bold;
  letter-spacing: -0.015em;
  border-bottom: 2px solid ;
  margin-bottom: 0.2em;
  padding-top: 0.15em;
}

#info p {
  font-size: 0.9em;
  margin-bottom: 0.8em;
  line-height: 1.3em;
}

#info p:first-line {
  font-variant: small-caps;
}


/* -- Chars -- */

#chars {
  border-bottom: 1px solid;
}

#chars span {
  display: block;
  float: left;
  text-align: center;
}

.drawer {
  padding: 4px 0; 
}

#reg {
  border-top: 8px solid;
}
#reg span {
  width: 49px;
  height: 49px;
  line-height: 49px;
  font-size: 2.7em;
}

#ital div, #bold div {
  width: 320px;
  float: left;
}

#ital span, #bold span {
  width: 24px;
  height: 24px;
  line-height: 24px;
  font-size: 1.3em;
}

#ital { font-style: italic; }
#bold { font-weight: bold; }
#ital, #bold { border-top: 4px solid; }

#bold_ital { border-top: 2px solid; }
#bold_ital span {
  width: 12px;
  height: 12px;
  font-size: 0.7em;
  font-weight: bold;
  font-style: italic;
}

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }


/* Marcus quote */

#marcus {
  border-top: 10px solid;
  padding-top: 0.8em;
  margin-top: 1.4em;
  font-size: 1.6em;
}

#marcus p span {
  display: block;
}



.workest {
  font-size: 3.25em;
  font-weight: bold;
  font-variant: small-caps;
  letter-spacing: -.02em;
  line-height: 0.75em;
  position: relative;
}
.lquo {
  position: absolute;
  left: -0.6em;

  font-weight: bold;
}


.beforethee {
  font-size: 2.2em;
  line-height: 0.9em;
}

.following {
  font-size: 2.9em;
  line-height: 0.9em;
  letter-spacing: -.02em;
}

.seriously {
  font-size: 2.0em;
  line-height: 1.05em;
}
#marcus span.seriously span.smallcaps { display: inline; }
.seriously .smallcaps {
  font-size: 0.9em;
}

.allowing {
  font-size: 0.5em;
  text-transform: uppercase;
  letter-spacing: .4em;
  font-weight: bold;
  line-height: 1.5em;
}

.divine {
  font-size: 1.9em;
  font-style: italic;
  letter-spacing: -.01em;
  line-height: 1.05em;
}
.divine em {
  font-variant: small-caps;
  font-style: normal;
  font-size: 0.85em;
  letter-spacing: 0.05em;
}

.shouldst {
  font-size: 2.0em;
  line-height: 0.8em;
  letter-spacing: -0.01em;
  line-height: 0.9em;
}

.giveback {
  font-size: 2.4em;
  letter-spacing: -0.01em;
  line-height: 0.9em;
}

.holdest {
  font-size: 2.2em;
  font-weight: bold;
  font-variant: small-caps;
  letter-spacing: -.02em;
  line-height: 1.0em;
}

.expecting {
  font-size: 3.2em;
  line-height: 0.85em;
}

.fearing {
  font-weight: bold;
  font-size: 3.5em;
  line-height: 0.85em;
}

.satisfied {
  font-size: 1.65em;
  letter-spacing: -0.01em;
  line-height: 1.15em;
}

.according {
  font-size: 2.2em;
  line-height: 0.9em;
  letter-spacing: 0.15em;
}

.heroic {
  font-size: 2.4em;
  font-variant: normal;
  font-weight: bold;
  font-style: italic;
  line-height: 0.9em;
  
}
.heroic em {
  font-variant: small-caps;
  font-style: normal;
  font-weight: bold;
  letter-spacing: -0.01em;
}

.every {
  font-size: 1.05em;
  letter-spacing: 0.4em;
  line-height: 1.15em;
  text-transform: uppercase;
}

.utterest {
  font-size: 2.5em;
  letter-spacing: 0.1em;
  line-height: 0.85em;
}

.livehappy {
  font-size: 2.95em;
  font-weight: bold;
  letter-spacing: -0.025em;
  line-height: 0.9em;
}

.noman {
  font-size: 1.9em;
  font-variant: small-caps;
  letter-spacing: 0.2em;
  line-height: 0.95em;
}

.prevent {
  font-size: 2.4em;
  line-height: 0.9em;
  letter-spacing: -0.02em;
  position: relative;
}


.rquo {
  position: absolute;
  font-size: 1.3em;
  top: 0;
  right: -0.5em;
  font-weight: bold;
}

#marcus cite {
  margin-top: 0.4em;
  border-top: 10px solid;
  display: block;
  text-align: center;
  padding: 0.2em 0; 
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.4em;
  font-size: 1.55em;
}

/* clearfix */

  .clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    }



            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console