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="flex flex-wrap items-center justify-center w-screen text-gray-500 min-h-screen bg-gray-50 p-10">

	<div class="space-y-10 m-5">
		<!-- Component Start -->
		<div class="relative flex items-center pl-2 pr-6 w-72 max-w-full h-20 rounded-full bg-white shadow-lg hover:shadow-xl transition duration-100">
			<img class="w-16 h-16 rounded-full" src="https://images.generated.photos/FgXM35MIge_-MCv2c1irkSlhEzlqodpTkD3I1NK03FM/rs:fit:256:256/czM6Ly9pY29uczgu/Z3Bob3Rvcy1wcm9k/LnBob3Rvcy92M18w/OTc1MTIwLmpwZw.jpg" alt="">
			<p class="ml-4"><a href="#" class="text-blue-500 font-medium hover:underline hover:text-blue-600">Amara</a> has liked this product.</p>
			<div class="absolute flex items-center justify-center w-8 h-8 rounded-full shadow-lg top-0 right-0 -mt-1 -mr-1 bg-red-400">
				<svg class="w-5 h-5 fill-current text-white" xmlns="http://www.w3.org/2000/svg" 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>
			</div>
		</div>
		<!-- Component End  -->

		<!-- Component Start -->
		<div class="relative flex items-center pl-2 pr-6 w-72 max-w-full h-20 rounded-full bg-white shadow-lg hover:shadow-xl transition duration-100">
			<img class="w-16 h-16 rounded-full" src="https://images.generated.photos/EZTNV0mycyvvJughoi_eACXJPFugzEcaHAPtt8q_i4I/rs:fit:256:256/czM6Ly9pY29uczgu/Z3Bob3Rvcy1wcm9k/LnBob3Rvcy92M18w/MjAwODAwLmpwZw.jpg" alt="">
			<p class="ml-4"><a href="#" class="text-blue-500 font-medium hover:underline hover:text-blue-600">David</a> has purchased this product.</p>
			<div class="absolute flex items-center justify-center w-8 h-8 rounded-full bg-green-400 shadow-lg top-0 right-0 -mt-1 -mr-1">
				<svg class="w-5 h-5 fill-current text-white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
					<path fill-rule="evenodd" d="M10 2a4 4 0 00-4 4v1H5a1 1 0 00-.994.89l-1 9A1 1 0 004 18h12a1 1 0 00.994-1.11l-1-9A1 1 0 0015 7h-1V6a4 4 0 00-4-4zm2 5V6a2 2 0 10-4 0v1h4zm-6 3a1 1 0 112 0 1 1 0 01-2 0zm7-1a1 1 0 100 2 1 1 0 000-2z" clip-rule="evenodd" />
				</svg>
			</div>
		</div>
		<!-- Component End  -->

		<!-- Component Start -->
		<div class="relative flex items-center pl-2 pr-6 w-72 max-w-full h-20 rounded-full bg-white shadow-lg hover:shadow-xl transition duration-100">
			<img class="w-16 h-16 rounded-full" src="https://images.generated.photos/ZZMU47cv2Jwlp9q7I47b7dxXsac23DxsN7YjNvkss8E/rs:fit:256:256/czM6Ly9pY29uczgu/Z3Bob3Rvcy1wcm9k/LnBob3Rvcy92M18w/Nzg3Njk5LmpwZw.jpg" alt="">
			<p class="ml-4"><a href="#" class="text-blue-500 font-medium hover:underline hover:text-blue-600">Grace</a> has gifted this product.</p>
			<div class="absolute flex items-center justify-center w-8 h-8 rounded-full bg-purple-400 shadow-lg top-0 right-0 -mt-1 -mr-1">
				<svg class="w-5 h-5 fill-current text-white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
					<path fill-rule="evenodd" d="M5 5a3 3 0 015-2.236A3 3 0 0114.83 6H16a2 2 0 110 4h-5V9a1 1 0 10-2 0v1H4a2 2 0 110-4h1.17C5.06 5.687 5 5.35 5 5zm4 1V5a1 1 0 10-1 1h1zm3 0a1 1 0 10-1-1v1h1z" clip-rule="evenodd" />
					<path d="M9 11H3v5a2 2 0 002 2h4v-7zM11 18h4a2 2 0 002-2v-5h-6v7z" />
				</svg>
			</div>
		</div>
		<!-- Component End  -->
		
	</div>
	<div class="space-y-10 m-5">
		<!-- Component Start -->
		<div class="relative flex items-center pl-2 pr-6 w-72 max-w-full h-20 rounded-xl bg-white shadow-lg hover:shadow-xl transition duration-100">
			<img class="w-16 h-16 rounded-lg" src="https://images.generated.photos/FgXM35MIge_-MCv2c1irkSlhEzlqodpTkD3I1NK03FM/rs:fit:256:256/czM6Ly9pY29uczgu/Z3Bob3Rvcy1wcm9k/LnBob3Rvcy92M18w/OTc1MTIwLmpwZw.jpg" alt="">
			<p class="ml-4"><a href="#" class="text-blue-500 font-medium hover:underline hover:text-blue-600">Amara</a> has liked this product.</p>
			<div class="absolute flex items-center justify-center w-7 h-7 rounded-lg transform rotate-45 shadow-lg top-0 right-0 -mt-2 -mr-2 bg-red-400">
				<svg class="w-5 h-5 fill-current text-white transform -rotate-45" xmlns="http://www.w3.org/2000/svg" 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>
			</div>
		</div>
		<!-- Component End  -->

		<!-- Component Start -->
		<div class="relative flex items-center pl-2 pr-6 w-72 max-w-full h-20 rounded-xl bg-white shadow-lg hover:shadow-xl transition duration-100">
			<img class="w-16 h-16 rounded-lg" src="https://images.generated.photos/EZTNV0mycyvvJughoi_eACXJPFugzEcaHAPtt8q_i4I/rs:fit:256:256/czM6Ly9pY29uczgu/Z3Bob3Rvcy1wcm9k/LnBob3Rvcy92M18w/MjAwODAwLmpwZw.jpg" alt="">
			<p class="ml-4"><a href="#" class="text-blue-500 font-medium hover:underline hover:text-blue-600">David</a> has purchased this product.</p>
			<div class="absolute flex items-center justify-center w-7 h-7 rounded-lg transform rotate-45 shadow-lg top-0 right-0 -mt-2 -mr-2 bg-green-400">
				<svg class="w-5 h-5 fill-current text-white transform -rotate-45" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
					<path fill-rule="evenodd" d="M10 2a4 4 0 00-4 4v1H5a1 1 0 00-.994.89l-1 9A1 1 0 004 18h12a1 1 0 00.994-1.11l-1-9A1 1 0 0015 7h-1V6a4 4 0 00-4-4zm2 5V6a2 2 0 10-4 0v1h4zm-6 3a1 1 0 112 0 1 1 0 01-2 0zm7-1a1 1 0 100 2 1 1 0 000-2z" clip-rule="evenodd" />
				</svg>
			</div>
		</div>
		<!-- Component End  -->

		<!-- Component Start -->
		<div class="relative flex items-center pl-2 pr-6 w-72 max-w-full h-20 rounded-xl bg-white shadow-lg hover:shadow-xl transition duration-100">
			<img class="w-16 h-16 rounded-lg" src="https://images.generated.photos/ZZMU47cv2Jwlp9q7I47b7dxXsac23DxsN7YjNvkss8E/rs:fit:256:256/czM6Ly9pY29uczgu/Z3Bob3Rvcy1wcm9k/LnBob3Rvcy92M18w/Nzg3Njk5LmpwZw.jpg" alt="">
			<p class="ml-4"><a href="#" class="text-blue-500 font-medium hover:underline hover:text-blue-600">Grace</a> has gifted this product.</p>
			<div class="absolute flex items-center justify-center w-7 h-7 rounded-lg transform rotate-45 shadow-lg top-0 right-0 -mt-2 -mr-2 bg-purple-400">
				<svg class="w-5 h-5 fill-current text-white transform -rotate-45" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
					<path fill-rule="evenodd" d="M5 5a3 3 0 015-2.236A3 3 0 0114.83 6H16a2 2 0 110 4h-5V9a1 1 0 10-2 0v1H4a2 2 0 110-4h1.17C5.06 5.687 5 5.35 5 5zm4 1V5a1 1 0 10-1 1h1zm3 0a1 1 0 10-1-1v1h1z" clip-rule="evenodd" />
					<path d="M9 11H3v5a2 2 0 002 2h4v-7zM11 18h4a2 2 0 002-2v-5h-6v7z" />
				</svg>
			</div>
		</div>
		<!-- Component End  -->
		
	</div>

</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console