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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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>
	<html xmlns="http://www.w3.org/1999/xhtml"
		xmlns:v="urn:schemas-microsoft-com:vml"
		xmlns:o="urn:schemas-microsoft-com:office:office">
	<head>
	<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
	<!--[if !mso]><!-- -->
			<meta http-equiv="X-UA-Compatible" content="IE=edge">
			<!--<![endif]-->
	<meta name="format-detection" content="telephone=no">
	<meta name="x-apple-disable-message-reformating" />
	<!--Built in London by the ActionRocket team - @ActionRocket -->
	<title>Font-weight</title>
	<style type="text/css">
	* {
		mso-line-height-rule: exactly;
	}
	* {
		-webkit-text-size-adjust: none;
		-ms-text-size-adjust: none;
	}
	table td {
		border-collapse: collapse;
	}
	html, body, p, div {
		margin: 0;
		padding: 0;
		-webkit-font-smoothing: antialiased;
	}
	.ExternalClass {
		width: 100%;
	}
	.ExternalClass * {
		line-height: 110%
	}
	img {
		-ms-interpolation-mode: bicubic;
		border: 0;
	}
	body {
		margin: 0!important;
		padding: 0!important;
		width: 100%!important;
	}
	</style>
	<style type="text/css">
	div[style*="margin: 16px 0"] {
		margin: 0!important;
	}
	a[x-apple-data-detectors] {
		color: inherit!important;
		text-decoration: none!important;
		font-size: inherit!important;
		font-family: inherit!important;
		font-weight: inherit!important;
		line-height: inherit!important;
	}
	u + #body a {
		color: inherit;
		text-decoration: none;
		font-size: inherit;
		font-family: inherit;
		font-weight: inherit;
		line-height: inherit;
	}
	</style>
		
	<link href="https://fonts.googleapis.com/css?family=Sarabun:100,200,300,400,500,600,700,800" rel="stylesheet">

	<!--[if gte mso 9]>
			<xml>
				<o:OfficeDocumentSettings>
					<o:AllowPNG/>
					<o:PixelsPerInch>96</o:PixelsPerInch>
				</o:OfficeDocumentSettings>
			</xml>
			<![endif]-->
	</head>
	<body style="margin:0!important; padding:0!important; width:100%!important;" class="body" id="body">
	<table role="none" width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
	  <tr>
		<td align="center" valign="top"><table role="none" style="width:640px; min-width: 640px" width="640" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f8f8f5" class="w100pc">
			<tr>
			<td align="center" style="font-size: 20px; line-height: 26px; font-family: 'Sarabun', Helvetica, Arial, san-serif; padding: 10px; font-weight: 100;"> Sarabun font-weight 100</td>
			</tr>
			<tr>
			<td align="center" style="font-size: 20px; line-height: 26px; font-family: 'Sarabun', Helvetica, Arial, san-serif; padding: 10px; font-weight: 200;"> Sarabun font-weight 200</td>
			</tr>
			<tr>
			<td align="center" style="font-size: 20px; line-height: 26px; font-family: 'Sarabun', Helvetica, Arial, san-serif; padding: 10px; font-weight: 300;"> Sarabun font-weight 300</td>
			</tr>
			<tr>
			<td align="center" style="font-size: 20px; line-height: 26px; font-family: 'Sarabun', Helvetica, Arial, san-serif; padding: 10px; font-weight: 400;"> Sarabun font-weight 400 (standard)</td>
			</tr>
			<tr>
			<td align="center" style="font-size: 20px; line-height: 26px; font-family: 'Sarabun', Helvetica, Arial, san-serif; padding: 10px; font-weight: 500;"> Sarabun font-weight 500</td>
			</tr>
			<tr>
			<td align="center" style="font-size: 20px; line-height: 26px; font-family: 'Sarabun', Helvetica, Arial, san-serif; padding: 10px; font-weight: 600;"> Sarabun font-weight 600</td>
			</tr>
			<tr>
			<td align="center" style="font-size: 20px; line-height: 26px; font-family: 'Sarabun', Helvetica, Arial, san-serif; padding: 10px; font-weight: 700;"> Sarabun font-weight 700 (bold)</td>
			</tr>
			<tr>
			<td align="center" style="font-size: 20px; line-height: 26px; font-family: 'Sarabun', Helvetica, Arial, san-serif; padding: 10px; font-weight: 800;"> Sarabun font-weight 800</td>
			</tr>
			<tr>
			<td align="center" style="font-size: 20px; line-height: 26px; font-family: 'Sarabun', Helvetica, Arial, san-serif; padding: 10px; font-weight: 900;"> Sarabun font-weight 900</td>
			</tr>
			</table>
			</td>
			</tr>
			</table>
		</body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console