Menu
S’okay. This isn’t a big deal but I’d like to do…..
BODY{
font-size: 10;
}
A{font-size: 11;}
H1 A{font-size: <whatever h1 font-size is set to and whenever h1 font-sized might be changed so should the A font size>;}
In other words can I define a value in terms of the value of another element property?
something link this might work:
[/QUOTE]
Only if the element is a direct child of <body> or all of the elements in the ancestor chain between the element and <body> have the same value for the property.
If you really want to do something like in your newest example, you might be best off using a server-side language, e.g. PHP, to dynamically create a stylesheet based on certain variables.
[/Quote]
Two additional points I should have made earlier:
1) For XHTML compatibility, always use lowercase element names in CSS.
[/quote]
2) CSS is not a programming or a scripting language. It is a stylesheet language. The similarities it has with programming/scripting languages are superficial.[/QUOTE]
0.1.9 — BETA 6.16