Join TalkersCode Now !

Get Latest Tutorials And Links On Web Development
And Get Existing Offers Via Email

CSS Dimensions

CSS Dimensions

You can set height , max-height , min-height , width , max-width , min-width of every element in a webpage.


  • height:is used to set the height of an element the value can be auto,length,%,inherit.

  • max-height:is used to set the maximum height of an element the value can be none,length,%,inherit.

  • min-height:is used to set the minimum height of an element the value can be length,%,inherit.

  • width:is used to set the width of an element the value can be auto,length,%,inherit.

  • max-width:is used to set the maximum width of an element the value can be none,length,%,inherit.

  • min-width:is used to set the minimum width of an element the value can be length,%,inherit.

Example of Dimensions

div
{
height:200px;
}

div
{
max-height:600px;
}

div
{
min-height:200px;
}

div
{
width:400px;
}

div
{
max-width:700px;
}

div
{
min-width:400px;
}
PrevNext

Join Us With Our 21000+ Subscribers And Get Our Latest Tutorials Update Via Email

Are You Starting A New Blog
Do You Want Best Web Hosting?

Try World's Best Web Hosting Provider BlueHost
At Just $3.95/mo

Hurry Up! Limited Time Offer

Yes, I Want To Check Out BlueHost

Check The World's Best SEO And All-In-One Marketing Toolkit
For Digital Marketing Professionals SEMRUSH

Check Out SEMRUSH