RE: pt vs px for font sizes.

This problem can be solved:

td td, td p, p td {font-size:100%}

(for a p inside a table, or a table inside a p, or a table inside a table,
don't keep applying the 80%).

cheers

Chaals

On Tue, 10 Sep 2002, Tom James wrote:

>You sometimes get multiplactive effects in tables: for example, a stylesheet
>like:
>
>td	{font-size: 80%;}
>p	{font-size: 80%;}
>
>applied to HTML reading:
>
><table>
> <tr>
>  <td>
>   This is table text.
>    <p>
>     This is paragraph text.
>    </p>
>  </td>
> </tr>
></table>
>
>Results in the "table" text being 80% of the normal size but the "paragraph"
>text being 64% (i.e. 80% x 80%).
>
>As was alluded to earlier on a different thread, modern browsers also
>sometimes run in "strict" or "quirks" mode with respect CSS depending on the
>DOCTYPE you select. In the case of at least MSIE5.5 / MSIE6 on Windows, this
>further complicates the sizing issue of text, particularly within tables.
>
>In these situations, I am generally inclined to "leave well alone" with
>regard font sizes, as the whole area rapidly spirals into deep complexities
>when tring to get a cross-platform, cross-browser, resizeable solution. But
>if you do want to control your font sizes more precisely, use ems or % but
>test ultra-thoroughly!
>
>	Tom
>
>Dr Tom James
>Senior Consultant
>
>===============================================================
>Digitext - Online Information at Work
>
>Telephone: +44 (0)1844 214690
>Fax: +44 (0)1844 213434
>Email: tom.james@digitext.com
>Web: http://www.digitext.com/
>
>
>>
>

-- 
Charles McCathieNevile  http://www.w3.org/People/Charles  tel: +61 409 134 136
SWAD-E http://www.w3.org/2001/sw/Europe ------------ WAI http://www.w3.org/WAI
 21 Mitchell street, FOOTSCRAY Vic 3011, Australia  fax(fr): +33 4 92 38 78 22
 W3C, 2004 Route des Lucioles, 06902 Sophia Antipolis Cedex, France

Received on Tuesday, 10 September 2002 11:30:51 UTC