// tailwind.config.jsmodule.exports = {variants:{// ...-height:['responsive'],+height:['responsive', 'hover', 'focus'],}} Disabling If you don't plan to use theheightutilities in your project, you can disable them entirely by setting theheightpropertytofalsein thecorePluginssection of...
Tailwind max-height utility class allows you to control the maximum height of elements. To set the Tailwind maximum height of an element, you can use the max-h-{size} classTailwind Max Height The max-height utility class in Tailwind CSS allows you to control the maximum height of elements....
ClassCSS Properties h-0 height: 0px; h-px height: 1px; h-0.5 height: 0.125rem; /* 2px */ h-1 height: 0.25rem; /* 4px */ h-1.5 height: 0.375rem; /* 6px */ h-2 height: 0.5rem; /* 8px */ h-2.5 height: 0.625rem; /* 10px */ h-3 height: 0.75rem; /* 12px */...
tailwind.config.js module.exports={theme:{extend:{minHeight:{'128':'32rem',}}} Learn more about customizing the default theme in thetheme customizationdocumentation. If you need to use a one-offmin-heightvalue that doesn’t make sense to include in your theme, use square brackets to gener...
In this case, the image stretches and does not fit within the parentCardcomponent, no matter how I adjust thewidth/heightproperties or apply classes such asw-fullorh-auto. TheImagecomponent should behave like the nativeelement, fitting appropriately inside the parent container without stretching...
Add size utilities (shorthand for width and height)tailwindlabs/tailwindcss#1288 Closed Copy link XiBORcommentedJan 24, 2020 Wouldn't it be more convenient to make reductions for all properties at once? For example: size: 10px; // width: 10px, height: 10px || min-width: 10, max-width...
} Try it Yourself » Example Different background properties can be used to create a "hero" image. .hero-image { background-image: url("photographer.jpg"); / Example Specify the size of a background-image using "auto" and in pixels: #example1 { background: url(mountain.jpg); back...
Properties h-0height: 0px; h-pxheight: 1px; h-0.5height: 0.125rem; h-1height: 0.25rem; h-1.5height: 0.375rem; h-2height: 0.5rem; h-2.5height: 0.625rem; h-3height: 0.75rem; h-3.5height: 0.875rem; h-4height: 1rem; h-5height: 1.25rem; ...
Preview the next Tailwind CSS. Sizing Utilities for setting the height of an element. Quick reference Class Properties h-0height:0px; h-pxheight:1px; h-0.5height:0.125rem;/* 2px */ h-1height:0.25rem;/* 4px */ h-1.5height:0.375rem;/* 6px */ ...
// tailwind.config.jsmodule.exports = {variants:{// ...-maxHeight:['responsive'],+maxHeight:['responsive', 'hover', 'focus'],}} Disabling If you don't plan to use themax-heightutilities in your project, you can disable them entirely by setting themaxHeightpropertytofalsein thecorePlug...