Style minWidth Property
Style minWidth Property
The minWidth property is used to either set or return the minimum width of an element. It only works on those elements which are either in fixed or absolute position or are block-level elements. For either setting or getting the maximum width of an element, we use the maxWidth property.
Syntax:-
Its syntax is:- object.style.minWidth OR object.style.minWidth = none | length | % | initial | inherit
Return:-
Its return is:- string having a minimum width of an element
Further Explanation:-
Value | Description |
---|---|
length | Defines minimum width in length units. |
% | Defines minimum width in % of parent element. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |