Complete the code to add a basic drop shadow to a div using Tailwind CSS.
<div class="bg-blue-500 p-6 rounded-lg [1]"> Drop shadow box </div>
The shadow-lg class adds a large drop shadow to the element.
Complete the code to apply a drop shadow only on hover using Tailwind CSS.
<button class="bg-green-400 p-4 rounded [1]"> Hover me </button>
shadow-md which applies shadow always.focus:shadow-md which applies shadow on focus, not hover.The hover:shadow-md class applies a medium drop shadow only when the button is hovered.
Fix the error in the code to add a drop shadow to an irregular shape with Tailwind CSS.
<div class="w-40 h-40 bg-purple-600 rounded-full [1]"> Circle with shadow </div>
shadow-none which removes shadows.shadow-inner which adds inner shadow, not drop shadow.The shadow-2xl class adds a strong drop shadow suitable for irregular shapes like circles.
Fill both blanks to create a drop shadow on an irregular polygon shape using Tailwind CSS.
<div class="w-48 h-48 bg-red-500 [1] [2]"> Polygon with shadow </div>
circle instead of polygon clip-path.The [clip-path:polygon(50%_0%,0%_100%,100%_100%)] arbitrary class clips the div into a polygon shape, and shadow-lg adds a large drop shadow.
Fill all three blanks to create a custom drop shadow on an irregular shape with Tailwind CSS.
<div class="w-56 h-56 bg-yellow-400 rounded-[1] shadow-[2] [3]"> Custom shadow shape </div>
The rounded-xl class rounds corners nicely, shadow-xl adds a large shadow, and hover:shadow-2xl makes the shadow bigger on hover.