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

              
                <head>
	
	<link href="https://rsms.me/inter/inter.css" rel="stylesheet">
	
	<link href="/css/style.css" rel="stylesheet">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	
	<style>
		@import url('https://rsms.me/inter/inter.css');
		html { font-family: 'Inter', sans-serif; }
		@supports (font-variation-settings: normal) {
		  html { font-family: 'Inter var', sans-serif; }
		}
	</style>
	
</head>

<body class="subpixel-antialiased bg-gray-700">
    <div class="max-w-6xl mx-auto">
        <div class="flex justify-center min-h-screen">
            <div class="max-w-md w-full p-4 py-6">
                
				<div class="bg-white shadow-xl rounded-lg overflow-hidden">
                    <div class="bg-cover bg-center h-16 p-4 flex justify-end items-center" style="background-image: url(https://mosscm.com/wp-content/uploads/2017/11/news-dallas-skyline.jpg)">
                        <p class="uppercase tracking-widest text-sm text-white bg-black py-1 px-2 rounded opacity-75 shadow-lg">Dallas, TX</p>
                    </div>
                    <div class="p-4 text-gray-700 flex justify-between">
						<div>
							<p class="text-3xl text-gray-900"><i class="wi wi-day-sunny text-yellow-500"></i> 84°<span class="text-lg text-gray-500">/ 67°</span></p>
							<p class="text-sm w-56">Mostly sunny throughout the day.<br />
							4-8 MPH winds.</p>
							
						</div>
						<div class="leading-loose text-sm">
							<div class="flex items-center">
								<i class="mr-2 wi wi-horizon-alt text-yellow-500"></i>
								<p><span class="font-bold">6:57</span> <span class="text-xs text-gray-600">AM</span></p>
							</div>
							<div class="flex items-center">
								<i class="mr-2 wi wi-horizon text-purple-400"></i>
								<p><span class="font-bold">5:42</span> <span class="text-xs text-gray-600">PM</span></p>
							</div>
						</div>
                    </div>
                    <div class="flex justify-between items-center p-4 border-t border-gray-300 text-gray-600">
                        <div class="flex items-center">
                            <i class="mr-2 wi wi-hot"></i>
							<p><span class="text-gray-900 font-bold">7</span> <span class="text-sm">UV</span></p>
                        </div>
						<div class="flex items-center">
                            <i class="mr-2 wi wi-rain"></i>
							<p><span class="text-gray-900 font-bold">8%</span> <span class="text-sm">Precip</span></p>
                        </div>
						<div class="flex items-center">
                            <i class="mr-2 wi wi-thermometer"></i>
							<p><span class="text-gray-900 font-bold">59°</span> <span class="text-sm">Dew Point</span></p>
                        </div>
                    </div>
                </div>
				
				<div class="text-gray-600 my-3 text-center"><i class="fas fa-ellipsis-v"></i></div>
				<div class="text-xs uppercase text-gray-400 tracking-wider text-center leading-none">EST Time to Airport: <span class="font-bold text-sm">32 min</span></div>
				<div class="text-gray-600 my-3 text-center"><i class="fas fa-ellipsis-v"></i></div>
				
				<div class="bg-white shadow-xl rounded-lg overflow-hidden">
                    <div class="bg-cover bg-center h-16 p-4 flex justify-end items-center" style="background-image: url(https://content.api.news/v3/images/bin/11990db1d540d5c13ea8ca3e01f2083c)">
                        <p class="uppercase tracking-widest text-sm text-white bg-black py-1 px-2 rounded opacity-75 shadow-lg">DFW <span class="tracking-normal">--></span> SEA</p>
                    </div>
					<div class="px-4 pb-3 pt-4 border-b border-gray-300 bg-gray-100 flex justify-between">
                        <div class="text-xs uppercase font-bold text-gray-600 tracking-wide">TSA: <span class="font-normal">5-12 min</span></div>
						<div class="text-xs uppercase font-bold text-gray-600 tracking-wide">Airport Status: <span class="font-normal text-green-600">Normal</span></div>
                    </div>
                    <div class="p-4 text-gray-700 flex justify-between items-start">
						<div>
							<p class="text-3xl text-gray-900 leading-none my-1">AA 792</p>
							<p class="text-xs w-56">American Airlines</p>
							<p class="text-sm w-56">7:11 am --> 10:10 am</p>
							
							
						</div>
						<div class="leading-loose bg-green-500 text-white p-1 px-2 rounded-lg uppercase text-xs tracking-wider">On Time</div>
                    </div>
                    <div class="flex justify-between items-center p-4 border-t border-gray-300 text-gray-600">
                        <div class="flex items-center">
							<p><span class="text-sm pr-1">Terminal</span> <span class="text-gray-900 font-bold">C</span></p>
                        </div>
						<div class="flex items-center">
							<p><span class="text-sm pr-1">Gate</span> <span class="text-gray-900 font-bold">C24</span></p>
                        </div>
						<div class="flex items-center">
							<p><span class="text-sm pr-1">Seats</span> <span class="text-gray-900 font-bold">12D, 12E</span></p>
                        </div>
                    </div>
                    
                </div>
				
				<div class="text-gray-600 my-3 text-center"><i class="fas fa-ellipsis-v"></i></div>
				<div class="text-xs uppercase text-gray-400 tracking-wider text-center leading-none">EST Flight Time: <span class="font-bold text-sm">2 hr 14 min</span></div>
				<div class="text-gray-600 my-3 text-center"><i class="fas fa-ellipsis-v"></i></div>
				
				
				
				
				
				<div class="bg-white shadow-xl rounded-lg overflow-hidden">
                    <div class="bg-cover bg-center h-16 p-4 flex justify-end items-center" style="background-image: url(https://images.fineartamerica.com/images/artworkimages/mediumlarge/1/seattle-skyline-with-mount-rainier-during-sunrise-panorama-david-gn.jpg)">
                        <p class="uppercase tracking-widest text-sm text-white bg-black py-1 px-2 rounded opacity-75 shadow-lg">Seattle, WA</p>
                    </div>
                    <div class="p-4 text-gray-700 flex justify-between">
						<div>
							<p class="text-3xl text-gray-900"><i class="wi wi-cloudy text-gray-600"></i> 52°<span class="text-lg text-gray-500">/ 39°</span></p>
							<p class="text-sm w-56">Cloudy with scattered showers.<br />
							1-3 MPH winds.</p>
							
						</div>
						<div class="leading-loose text-sm">
							<div class="flex items-center">
								<i class="mr-2 wi wi-horizon-alt text-yellow-500"></i>
								<p><span class="font-bold">6:57</span> <span class="text-xs text-gray-600">AM</span></p>
							</div>
							<div class="flex items-center">
								<i class="mr-2 wi wi-horizon text-purple-400"></i>
								<p><span class="font-bold">5:42</span> <span class="text-xs text-gray-600">PM</span></p>
							</div>
						</div>
                    </div>
                    <div class="flex justify-between items-center p-4 border-t border-gray-300 text-gray-600">
                        <div class="flex items-center">
                            <i class="mr-2 wi wi-hot"></i>
							<p><span class="text-gray-900 font-bold">1</span> <span class="text-sm">UV</span></p>
                        </div>
						<div class="flex items-center">
                            <i class="mr-2 wi wi-rain"></i>
							<p><span class="text-gray-900 font-bold">29%</span> <span class="text-sm">Precip</span></p>
                        </div>
						<div class="flex items-center">
                            <i class="mr-2 wi wi-thermometer"></i>
							<p><span class="text-gray-900 font-bold">46°</span> <span class="text-sm">Dew Point</span></p>
                        </div>
                    </div>
                </div>
				
            </div>
        </div>
    </div>
</body>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console