Tailwind CSS Sizing Complete Reference
Last Updated :
04 Aug, 2023
Tailwind CSS is a highly customizable, low-level CSS framework that gives you all of the buildings blocks that you need. Tailwind CSS Sizing that set the size of elements like setting element width, height, min-max width, and min-max height.
Tailwind CSS Class
|
Description
|
Example
|
Width |
It sets the width of the text, images. |
|
Min-Width |
It defines the minimum width of an element. |
|
Max-Width |
It defines the maximum width of an element. |
|
Height |
It sets the height of an element. |
|
Min-Height |
It sets the minimum height of an element. |
|
Max-Height |
It sets the maximum height of an element. |
|
Below example will give you a brief idea about the Sizing of Tailwind CSS:
Example:
HTML
<!DOCTYPE html>
< head >
< link href =
rel = "stylesheet" >
</ head >
< body class = "text-center mx-4 space-y-2" >
< h1 class = "text-green-600 text-5xl font-bold" >
GeeksforGeeks
</ h1 >
< b >Tailwind CSS MIn-Width Class</ b >
< div class="w-24 h-16 min-w-full md:min-w-0
bg-green-400 rounded-lg text-white">
</ div >
</ body >
</ html >
|
Output:
Tailwind CSS Sizing Complete Reference
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...