Width & Height Property usually uses in Images, Card, fonts, tables etc… for responsive & attractive design. So, in this blog, you can learn that how can use the width & height property in CSS?
Width–
This property is used to set the width of an element. We can set this property to auto and length in the form of px, cm, % etc.
Ex:-
div { width: 100px; }
Height–
This property is used to set the height of an element. We can set this property to auto and length in the form of px, cm, % etc.
Ex: –
div { height: 100px; }