Sent by Sophia Kapterian on 23 January 2004 21:09
Gerard Samuel wrote:
<
< In one global CSS file I set a padding for td cells
< padding: 5px
<
< In another page specific CSS file, I set a padding of 2px
< on table cells.
<
< Now, what Im expecting is a cumalative padding of 7 px just on this one
page,
< but its acting as if it only sees the 2px.
< Is this the correct behaviour???
Hi Gerard,
The cascade is being applied in this case. The global css specifies a
padding of 5px for the td cells, but in the embedded stylesheet you are
being more specific and assigning a padding of 2px. So if there are two
similar rules for the same element, the more specific rule will outwin.
HTH
Sophia
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/