29
loading...
This website collects cookies to deliver better user experience
<div class="min-h-screen bg-gray-100 py-6 flex flex-col justify-center sm:py-12">
hover:scale-150 flex flex-col items-center text-center
mean? hover:scale-150
section is a class that’s added for CSS to tell the item to increase in size by 150% when hovered. flex
class sets this div to use the CSS flexbox design flex-col
class changes the flexbox from the default row pattern to a column pattern to stack items nicely on top of each otheritems-center
class sets everything to be aligned and justified center in the div text-center
sets the text to be center-aligned <div>
<button class="px-3 py-3 bg-blue-200 shadow-lg transition ease-in-out duration-300 rounded-lg whitespace-nowrap font-semibold;">I'm a button</button>
</div>
@tailwind base;
@tailwind components;
@tailwind utilities;
.bluebtn {
@apply px-3 py-3 bg-blue-200 shadow-lg transition ease-in-out duration-300 rounded-lg whitespace-nowrap font-semibold;
}
<div>
<button class="bluebtn">I'm a button</button>
</div>