471,084 Members | 1,042 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,084 software developers and data experts.

Font and bgcolor: redundant on <table> and <td> ?

In looking over my style sheet
http://www.acad.sunytccc.edu/instruct/sbrown/screen.css
I see that I have identical fonts and colors set on table and td
elements.

Is there any reason to do this, or is it a bit of cargo-cultery that
I put in there when I was first starting out?

As far as I can see, if I've styled td and th there's no need to
style table, as far as font and color go. (Other properties like
margins of course make sense on table.) Am I missing something?

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #1
1 2542
In article <MP************************@news.odyssey.net>, Stan Brown
wrote:
In looking over my style sheet
http://www.acad.sunytccc.edu/instruct/sbrown/screen.css
I see that I have identical fonts and colors set on table and td
elements.

Is there any reason to do this, or is it a bit of cargo-cultery that
I put in there when I was first starting out?

As far as I can see, if I've styled td and th there's no need to
style table, as far as font and color go. (Other properties like
margins of course make sense on table.) Am I missing something?


Many obsolate browsers don't inherit fonts correctly in tables. But if
you don't tricker quirks mode, I don't think that is that big problem.
Especially since you don't change font-size that could be inherited
incorrectly. (It may affect for the same obsolate browser that need 100%
on body to work correctly, but I have forgotten all about it, including
browser for that 100% was for...)

I don't think there is any reason for double color properties.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by El Diablo | last post: by
2 posts views Thread by Bart Plessers \(artabel\) | last post: by
2 posts views Thread by bissatch | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.