How to use Width & Height Property in CSS?

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; }

Tagged : / / / /
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x