homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

setting font in body tag

 5:55 pm on Mar 10, 2003 (gmt 0)

Anybody know why redefining the body tag's font attribute doesn't affect all text on your page? I would assume a font spec for the body tag would affect everything on the page...



 7:07 pm on Mar 10, 2003 (gmt 0)

When you're talking about "redefining the body tag's font attribute", what exactly do you mean?

Do you mean using the style attribute and the font property? Also, which browser causes problems?

Setting the font for the body, either using inline style or a separate style sheet (internal as well as external) should change the font on the whole page. A browser that correctly handles inheritance should display the whole page in that font, no matter if you have tables or other tags.


 8:24 pm on Mar 10, 2003 (gmt 0)

yeah and the size, I used ie6, it doesn't work if done in the body, but if I redefine the <table> tag it works fine...not sure why...


 8:28 pm on Mar 10, 2003 (gmt 0)

Can you post an example of the code?

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved