Height is not same with margin,padding,border.We can easily resize an element by this height property. In html & CSS this height property is used by :
div.a {
height : 50px;
}
That means , in a html div element , the div properties stands with 50px height..The contents in this div are remaining with the same size of height property..
div.a {
height: auto; }
If height : auto;
the element will automatically adjust its height to allow
its content to be displayed correctly .We can use the percentage (%) value as a height. For example :
div.a {
height : 50%;
}
This means, it's create a space of 50% height of a div element.
The min-height and max-height properties override the
height property.
0 comments:
Post a Comment