You are here: Re: table td font size inheritance « HTML « IT news, forums, messages
Re: table td font size inheritance

Posted by Michael Fesser on 12/29/07 00:39

..oO(jeremy)

>Generally, I want all html on my page to have a size of 10pt, so I
>have a style set:

You don't want to use pt on a web page. Use em or %.

>body, div, input, select, span, td, th, legend, textarea, a, a:hover
>{
> font-size: 10pt;
>}

body {
font-size: ...
}

is enough on a properly built site.

>I use this because I've found (at least with IE which I must support)
>that not all elements inherit the font size so I set the size
>explicitely explicitly. This worked well until I needed a table in my
>page with 8pt text in the cells.

Make sure your pages are rendered in standards mode, not in quirks mode.

>I set the size in the style of the table and nothing worked. is there
>any way to get this to work by setting the table style, and not the
>individual cells? I find it strange that the cell font size doesn't
>inherit from the table style and instead uses the global style.

It's a known IE bug in quirks mode.

Micha

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация