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

              
                
<body class="bg-gray-200">
 <section class="w-full lg:w-1/5 hover:shadow-md transform transition duration-500 hover:scale-110 flex flex-row lg:flex-col mb-3 bg-white mx-auto rounded-md relative cursor-pointer">
        <section class="mx-auto relative w-2/5 lg:w-full lg:h-[325px] border-b">
           <section class="absolute flex flex-row items-center top-0 left-0 text-xs z-10 text-primaryFont font-semibold">
      <div
        class="py-1 desktop:px-2 px-3 lg:flex flex-row items-center bg-green-600 text-white hidden"
      >
        <i class="fi fi-sr-bolt text-primaryCyan pt-1 pr-1"></i>
        <span>Flash Sale</span>
      </div>
        <div class="flex flex-row items-center bg-green-400 pr-4 py-1 text-[11px] rounded-br-3xl text-white pl-2">
          🕔
          <span class="pl-1">23 : 23: 00</span>
        </div>
    </section>
            <img          src="https://images.pexels.com/photos/821651/pexels-photo-821651.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"
              alt="Product Name"
              class="mx-auto lg:rounded-t-md lg:rounded-b-none rounded-md p-1 lg:p-0"
              layout="fill"
            />
        </section>

        <section class="p-2 w-3/5 lg:w-full h-[150px] relative">
          <section class="flex flex-row items-start">
            <h1
            class="text-base text-black line-clamp-2 capitalize"
              title="Luna Fabric single seater recliner testing with the two line for line clamp test"
            >
              Pebel retro camera with belt
            </h1>
          </section>
          <section class="flex flex-row items-center mt-1">
            <div class="text-green-700 text-xl font-bold mr-2">
              Rs. 45,999
            </div>
            <div class="text-black-200 text-base line-through">
              Rs.61,999
            </div>
          </section>
          <section class="flex flex-row items-center mb-1">
            <span class="text-xs text-gray-600 font-medium">
              You Save Rs.16,000
            </span>
            <span class="text-xs text-green-900 ml-1 font-medium">
              (56% off)
            </span>
          </section>
          <section>
            <p class="text-gray-600 text-xs ">
              EMI starts from <span>Rs.333/month</span>
            </p>

            <div class="flex flex-row items-center mt-1 text-red-400 text-sm ">
              <span className="ml-1">Delivery in 6 days</span>
            </div>
          </section>
        </section>
      </Link>
    </section>

</body>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console