Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

              
                <div class="flex flex-col items-center justify-center w-screen h-screen bg-indigo-500">

	<!-- Component Start -->
	<div class="flex flex-col p-6 pb-4 w-96 h-56 bg-indigo-700 text-indigo-50 rounded-lg shadow-lg">
		<div class="flex items-center">
			<svg class="h-8 w-8 stroke-current" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
				<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z" />
			</svg>
			<span class="text-indigo-100 text-lg ml-2 font-serif">Your Card Details</span>
		</div>
		<div class="mt-auto">
			<input id="credit_card" class="card-number-field text-xl w-full h-8 flex items-center mt-auto bg-transparent font-mono tracking-widest text-indigo-200 font-medium focus:outline-none" type="number" placeholder="0000 0000 0000 0000">
		</div>
		<div class="flex mt-6">
			<div class="flex flex-col 1/2">
				<label class="text-xs uppercase font-sembold tracking-wide font-serif" for="">Card Holder</label>
				<input class="uppercase text-sm mt-1 w-full h-8 flex items-center mt-auto bg-transparent font-mono tracking-widest text-indigo-50 font-medium focus:outline-none" type="text" placeholder="Name on card">
			</div>
			<div class="flex flex-col flex-grow mt-auto">
				<label class="text-xs uppercase font-sembold tracking-wide font-serif" for="">Expires</label>
				<div class="flex items-center">
					<input class="w-8 mt-1 h-8 flex items-center text-center justify-center mt-auto bg-transparent font-mono tracking-widest font-medium focus:outline-none" type="number" placeholder="##">
					<span class="mx-1">/</span>
					<input class="mt-1 w-8 h-8 flex items-center text-center justify-center mt-auto bg-transparent font-mono tracking-widest font-medium focus:outline-none" type="number" placeholder="##">
				</div>
			</div>
			<div class="flex items-center justify-end flex-grow ml-4">
				<div class="w-8 h-8 rounded-full bg-red-500"></div>
				<div class="w-8 h-8 rounded-full bg-yellow-400 -ml-3 bg-opacity-70"></div>
			</div>
		</div>
	</div>
	<!-- Component End  -->

</div>
              
            
!

CSS

              
                .card-number-field {
	text-shadow: 1px 2px #f4f4f440;
}

input[type=number] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console