Welcome to WebmasterWorld Guest from 54.146.194.42

Forum Moderators: not2easy

Message Too Old, No Replies

setting font in body tag

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

Preferred Member

10+ Year Member

joined:Aug 15, 2002
posts:450
votes: 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)

Senior Member

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

joined:Mar 15, 2002
posts:6807
votes: 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)

Preferred Member

10+ Year Member

joined:Aug 15, 2002
posts:450
votes: 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)

Senior Member

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

joined:Mar 15, 2002
posts:6807
votes: 0


Can you post an example of the code?