![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
there's one question that's been bothering me for a long time: Why does the TD element not inherit from the BODY element? |
|
Is there any reason why properties like "font-family" or "font-size" are not applied to content of TD if I assign them to the BODY element? |
#3
| |||
| |||
|
|
Lasse and Steve explained it excellently, and I just want to let you know that you can work around such bugs using the body * selector, which sets the style for all elements which are descendents of body. |
#4
| |||
| |||
|
|
Why does the TD element not inherit from the BODY element? Is there any reason why properties like "font-family" or "font-size" are not applied to content of TD if I assign them to the BODY element? |
#5
| |||
| |||
|
|
Other people have explained the why, this is the how: table, thead, tbody, tr, td, th { font-size: inherit; font-family: inherit; } |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
"Geoff Ball" <usenet (AT) doctype (DOT) ca> wrote in message news:3160181.TuWkE2YOz3 (AT) doctype (DOT) ca... .... http://nontroppo.org/wiki/OperaQuirksMode .... |
#8
| |||
| |||
|
|
Other people have explained the why, this is the how: table, thead, tbody, tr, td, th { font-size: inherit; font-family: inherit; } |
#9
| |||
| |||
|
|
It's easy to create a bookmarklet for it (at least in Mozilla) by setting the url of any existing bookmark (make one for the purpose) to the value above. |
![]() |
| Thread Tools | |
| Display Modes | |
| |