How to set min-height in tailwind?

Member

by aubrey , in category: HTML & CSS , 13 days ago

How to set min-height in tailwind?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by dana , 12 days ago

@aubrey 

To set a minimum height using Tailwind CSS, you can add a class with the format min-h-{value}, where {value} is the desired height. For example, to set a minimum height of 20rem, you would add the class min-h-20.


Here is an example of how you can set a minimum height in HTML using Tailwind CSS:

1
2
3
<div class="min-h-20 bg-gray-200">
    <!-- Content goes here -->
</div>


This will set the minimum height of the div to 20rem. You can adjust the value to the desired height you want to set.