Pen Settings



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


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="flex flex-wrap overflow-hidden bg-red-100 rounded-md m-8">

  <div class="w-6/7 h-36 md:h-full md:w-1/2 overflow-hidden">
    <img class="object-cover w-full h-full" 

  <div class="w-6/7 md:w-1/2 overflow-hidden">
   <div class="flex justify-between m-2">
      <h1 class="font-bold text-2xl ">Ticket to Hornstrandir </h1>
     <div class="text-blue-500 text-xl font-bold">$112.99</div>
    <p class="m-2 text-gray-500">
      Hornstrandir is a nature reserve located in the Westfjords, in the north-west of Iceland. The total area covers 580 square kilometres (220 square miles) of tundra, cliffs, flowering fields and ice.
    <div class="flex">
      <button class="bg-blue-400 text-lg font-bold px-4 py-2 m-2 mt-12 rounded-md text-white hover:bg-blue-700">Buy now</button>
      <button class="bg-white text-lg font-bold px-4 py-2 m-2 mt-12 rounded-md text-red-400 border-4 border-red-400 hover:border-red-700 hover:text-red-700"> Add to Cart</button>