Pen Settings



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


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


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.


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.


                <div class="card">
	<h1 class="title">Bartender Club</h1>
	<div class="body">
		<p>A bartender is a person who formulates and serves alcoholic or soft drink beverages behind the bar, usually in a licensed establishment. Bartenders also usually maintain the supplies and inventory for the bar. A bartender can generally mix classic cocktails such as a Cosmopolitan, Manhattan, Old Fashioned, and Mojito.</p>
		<p> Thanks Wikipedia.</p>


                * {
	box-sizing: border-box;
	font-family: sans-serif;

/* Default colors - same colors for light mode so we only need to change for dark mode */
:root {
	font-size: 16px;
	--background-color: #e8e8e8;
	--text-color: #161616;
	--card-color: #fff;
	--shadow-color: #ccc;

@media (prefers-color-scheme: dark) {
	:root {
		--background-color: #161616;
		--text-color: #fff;
		--card-color: #545454;
		--shadow-color: #2d2d2d;

body {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	width: 100vw;
	background: var(--background-color);

.card {
	width: 100%;
	max-width: 400px;
	padding: 1rem;
	background: var(--card-color);
	color: var(--text-color);
	border-radius: 0.5rem;
	box-shadow: 0 0 1rem 0 var(--shadow-color);

.title {
	line-height: 1.3;
	letter-spacing: 1px;
	margin: 0;
	margin-bottom: 1rem;

p {
	line-height: 1.3;
	margin: 0;
	margin-bottom: 0.75rem;