Welcome to WebmasterWorld Guest from 54.147.212.98

Forum Moderators: not2easy

Message Too Old, No Replies

setting font in body tag

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

10+ Year Member



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)

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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)

10+ Year Member



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)

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Can you post an example of the code?