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

Auto Save

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="fixed h-full w-full sm:p-4 md:p-4 lg:p-4 flex justify-center items-center bg-red-400">
	<div class="relative sidemenu bg-white md:w-52 lg:w-52 flex flex-col  items-center p-4 rounded-md h-full overflow-y-scroll">
		<div class="flex flex-col">
			<div class="flex items-center gap-2 my-8 px-6">
				<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 text-red-400 " viewBox="0 0 20 20" fill="currentColor">
					<path fill-rule="evenodd" d="M3.172 5.172a4 4 0 015.656 0L10 6.343l1.172-1.171a4 4 0 115.656 5.656L10 17.657l-6.828-6.829a4 4 0 010-5.656z" clip-rule="evenodd" />
				</svg>
				<h4 class="text-base font-semibold">Fit & Fine</h4>
			</div>
			<div class="flex text-sm items-center text-red-400  gap-2 mb-6 px-6 cursor-pointer ">
				<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor">
					<path d="M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2v-2a2 2 0 00-2-2H5zM11 5a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V5zM14 11a1 1 0 011 1v1h1a1 1 0 110 2h-1v1a1 1 0 11-2 0v-1h-1a1 1 0 110-2h1v-1a1 1 0 011-1z" />
				</svg>
				<h4>Dashboard</h4>
			</div>
			<div class="flex text-sm items-center text-gray-500  gap-2 mb-6 px-6 cursor-pointer hover:text-red-600">
				<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
					<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z" />
				</svg>
				<h4>Appointments</h4>
			</div>
			<div class="flex text-sm items-center text-gray-500  gap-2 mb-6 px-6 cursor-pointer hover:text-red-600">
				<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
					<path d="M12 14l9-5-9-5-9 5 9 5z" />
					<path d="M12 14l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14z" />
					<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 14l9-5-9-5-9 5 9 5zm0 0l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14zm-4 6v-7.5l4-2.222" />
				</svg>
				<h4>Activity</h4>
			</div>
			<div class="flex text-sm items-center text-gray-500  gap-2 mb-6 px-6 cursor-pointer hover:text-red-600">
				<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
					<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z" />
				</svg>
				<h4>Messages</h4>
			</div>
			<div class="flex text-sm items-center text-gray-500  gap-2 mb-6 px-6 cursor-pointer hover:text-red-600">
				<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
					<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z" />
					<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z" />
				</svg>
				<h4>Statistics</h4>
			</div>
			<div class="flex text-sm items-center text-gray-500  gap-2 mb-6 px-6 cursor-pointer hover:text-red-600">
				<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
					<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />
					<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
				</svg>
				<h4>Settings</h4>
			</div>
			<div class="bg-gradient-to-br from-red-600 via-red-600 to-red-500 rounded-lg h-56 w-full mb-6 flex flex-col justify-center items-center p-2">
				<svg class="h-20 w-20" xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 512 512">
					<g data-name="<Group>">
						<path fill="#00acea" d="M420.05,91.95c90.6,90.6,90.6,237.5,0,328.1s-237.5,90.6-328.1,0-90.6-237.5,0-328.1S329.45,1.35,420.05,91.95ZM374.79,374.79a167.994,167.994,0,1,0-237.58,0A167.987,167.987,0,0,0,374.79,374.79Z"></path>
						<path fill="#00efd1" d="M374.79,137.21a167.994,167.994,0,1,1-237.58,0A167.987,167.987,0,0,1,374.79,137.21ZM281.37,281.37l37.01-87.75-87.75,37.01-37.01,87.75Z"></path>
						<polygon fill="#fedb41" points="318.38 193.62 281.37 281.37 193.62 318.38 230.63 230.63 318.38 193.62"></polygon>
						<path fill="#083863" d="M256,78a178.005,178.005,0,1,0,125.862,52.137A176.815,176.815,0,0,0,256,78ZM367.718,367.72A156.811,156.811,0,0,1,266,413.677V384.85a10,10,0,0,0-20,0v28.826A157.99,157.99,0,0,1,98.324,266H127.15a10,10,0,0,0,0-20H98.324a156.806,156.806,0,0,1,45.957-101.718h0A156.811,156.811,0,0,1,246,98.324V127.15a10,10,0,0,0,20,0V98.324A157.99,157.99,0,0,1,413.676,246H384.85a10,10,0,0,0,0,20h28.826A156.807,156.807,0,0,1,367.718,367.72Z"></path>
						<path fill="#083863" d="M314.494,184.406l-87.75,37.01a10,10,0,0,0-5.328,5.328l-37.01,87.75a10,10,0,0,0,13.1,13.1l87.75-37.01a10,10,0,0,0,5.328-5.328l37.01-87.75a10,10,0,0,0-13.1-13.1Zm-40.758,89.331-61.347,25.874,25.874-61.348,61.347-25.874Z"></path>
						<path fill="#083863" d="M256,14A242,242,0,0,0,84.879,427.121,242,242,0,0,0,427.121,84.879,240.417,240.417,0,0,0,256,14ZM412.979,412.979A222,222,0,0,1,99.021,99.021,222,222,0,0,1,412.979,412.979Z"></path>
					</g>
				</svg>
				<p style="font-size: 10px;" class="text-white text-xs text-center my-2 px-4 mb-4">Amazing features are waiting for you.</p>
				<button class="bg-white rounded-full px-2 py-2 font-bold" style="font-size: 10px">Discover Pro</button>
			</div>
			<div class="flex text-sm items-center text-red-500 font-bold gap-2 mb-6 px-6 cursor-pointer hover:text-red-800">
				<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
					<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1" />
				</svg>
				<h4 class="font-bold">Log out</h4>
			</div>
		</div>
	</div>
</div>
              
            
!

CSS

              
                h4 {
	font-size: 12px;
	font-weight: 500;
}

@media only screen and (max-width: 420px) {
	.sidemenu {
		width: 100%;
	}
}

              
            
!

JS

              
                
              
            
!
999px

Console