karuna sagar k wrote:
> Hi,
>
> {width: 60%} - here the width of the element is 60% of what ?
> Also, does the answer to above hold good for "margins" and "paddings" ?
>
> Thanks,
> Karuna
>
>
> -
>
Hi Karuna,
As I understand it, a percentage width is calculated based on the
parent element.
ie:
html body {
width: 700px;
}
#element1 {
width: 60%
}
===
.. some content ...
the div with id element1 will have its width be 60% of the
containing/parent element, in this case 'body'.
HTH,
~R
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/