Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 06:47 PM
Jon
Guest
 
Posts: n/a
Default font size in table

Hi,

I have table text set to 85%, I may change that to em's but for now haven't

If I have a table nested within the table I get font size of 85% of 85% =
72% - too small.

Without specifiying font size in px what should I do here? Basically I want
all fonts a bit smaller that standard but to allow for enlarging them if the
visitor has upped their font size in their browser options.

Thanks

(sent to .authoring.html and .authoring.stylesheets)

Jon


  #2  
Old July 20th, 2005, 06:47 PM
Els
Guest
 
Posts: n/a
Default Re: font size in table



Jon wrote:
[color=blue]
> Hi,
>
> I have table text set to 85%, I may change that to em's but for now haven't
>
> If I have a table nested within the table I get font size of 85% of 85% =
> 72% - too small.
>
> Without specifiying font size in px what should I do here?[/color]

Have a class name for the outer table, and specify 85% for
that table only. If a nested table gets font size 85% of
85%, I'd say the font size is inherited, so you only need to
specify it once.

But make sure you have set the font 100% for the body, or
else, IE will display the font in the inner table bigger
than the 85% you set for the outer table.
[color=blue]
> Basically I want
> all fonts a bit smaller that standard but to allow for enlarging them if the
> visitor has upped their font size in their browser options.[/color]


--
Els

Mente humana é como pára-quedas; funciona melhor aberta.

  #3  
Old July 20th, 2005, 06:47 PM
kchayka
Guest
 
Posts: n/a
Default Re: font size in table

Jon wrote:[color=blue]
>
> I have table text set to 85%, I may change that to em's but for now haven't[/color]

Don't change. Leave font-size at %, it's generally better supported
than em and avoids a weird resizing bug in WinIE. If you have a mind to
change anything, let it be leaving default sizes at 100% (or not
specifying any size at all).
[color=blue]
> If I have a table nested within the table I get font size of 85% of 85% =
> 72% - too small.[/color]

I'm glad you realize this.
[color=blue]
> Without specifiying font size in px what should I do here? Basically I want
> all fonts a bit smaller that standard but to allow for enlarging them if the
> visitor has upped their font size in their browser options.[/color]

Twould be better not to set any font size (85% is too small for my
tastes), and probably better yet not to use nested tables, especially if
they are for layout purposes. However, to prevent you from resorting to
something perhaps worse...

td {font-size:85%;}
table table td {font-size:100%;}

Nested tables should then be 100% of the parent table, but beware of
browsers that don't inherit into tables correctly.
[color=blue]
> (sent to .authoring.html and .authoring.stylesheets)[/color]

followup to c.i.a.w.s

--
Reply address is a bottomless spam bucket.
Please reply to the group so everyone can share.
  #4  
Old July 20th, 2005, 06:47 PM
Stan Brown
Guest
 
Posts: n/a
Default Re: font size in table

It seems "Jon" wrote in comp.infosystems.www.authoring.html:[color=blue]
>I have table text set to 85%, I may change that to em's but for now haven't
>
>If I have a table nested within the table I get font size of 85% of 85% =
>72% - too small.
>
>Without specifiying font size in px what should I do here?[/color]

Don't specify the font size at all, that's what you should do. I
know that sounds snappish, but why would you think you know better
than your visitors what font size is best?

If the table is really logically "fine print", meaning material
intended to be read by only a few aficionados, why not spin it off
into a separate linked document? Or at worst give it a class or ID
and style that class or ID. But it sounds like you have done
something generic like
table { font-size: 85% }
and I cannot imagine any justification for doing that.
[color=blue]
> Basically I want
>all fonts a bit smaller that standard but to allow for enlarging them if the
>visitor has upped their font size in their browser options.[/color]

"Primum non nocere." Don't create a problem, and you won't have to
worry about ways to compensate for the problem.

Followups set to ciwas.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
  #5  
Old July 20th, 2005, 06:48 PM
Jon
Guest
 
Posts: n/a
Default Re: font size in table

>>I have table text set to 85%, I may change that to em's but for now
haven't
[color=blue][color=green]
>>If I have a table nested within the table I get font size of 85% of 85%[/color][/color]
=72% - too small.

<snip>

As ever a nice range of replies - thanks.

As a thought I wonder how many viewers to your / our / my sights actually
know how to change their browser deault font size - most people, in my
experience, that are just web users, don't change ANY of their settings.
But for those that have we need to be able to accomodate them, of course.

Jon


  #6  
Old July 20th, 2005, 06:48 PM
PeterMcC
Guest
 
Posts: n/a
Default Re: font size in table

Jon <jon@SPAM_OFFtheexperts.co.uk> wrote in
<c1aj35$efa$1@titan.btinternet.com>
[color=blue][color=green][color=darkred]
>>> I have table text set to 85%, I may change that to em's but for now
>>> haven't[/color][/color]
>[color=green][color=darkred]
>>> If I have a table nested within the table I get font size of 85% of
>>> 85% =72% - too small.[/color][/color]
>
> <snip>
>
> As ever a nice range of replies - thanks.
>
> As a thought I wonder how many viewers to your / our / my sights
> actually know how to change their browser deault font size - most
> people, in my experience, that are just web users, don't change ANY
> of their settings. But for those that have we need to be able to
> accomodate them, of course.[/color]


That's my experience too but I am told - and it seems to make sense - that
those who need to be able to change them learn how to do so. I guess that,
in return, we ought to make sites that allow for that possibility.

--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

  #7  
Old July 20th, 2005, 06:48 PM
Jon
Guest
 
Posts: n/a
Default Re: font size in table

<snip>
[color=blue][color=green]
>> As a thought I wonder how many viewers to your / our / my sights
>> actually know how to change their browser deault font size - most
>> people, in my experience, that are just web users, don't change ANY
>> of their settings. But for those that have we need to be able to
>> accomodate them, of course.[/color][/color]

[color=blue]
>That's my experience too but I am told - and it seems to make sense - that
>those who need to be able to change them learn how to do so. I guess that,
>in return, we ought to make sites that allow for that possibility.[/color]

Agreed, so % it is then !!!

Jon


  #8  
Old July 20th, 2005, 06:48 PM
Stephen Poley
Guest
 
Posts: n/a
Default Re: font size in table

On Sun, 22 Feb 2004 18:24:17 +0000 (UTC), "Jon"
<jon@SPAM_OFFtheexperts.co.uk> wrote:
[color=blue]
><snip>
>[color=green][color=darkred]
>>> As a thought I wonder how many viewers to your / our / my sights
>>> actually know how to change their browser deault font size - most
>>> people, in my experience, that are just web users, don't change ANY
>>> of their settings. But for those that have we need to be able to
>>> accomodate them, of course.[/color][/color]
>
>[color=green]
>>That's my experience too but I am told - and it seems to make sense - that
>>those who need to be able to change them learn how to do so. I guess that,
>>in return, we ought to make sites that allow for that possibility.[/color]
>
>Agreed, so % it is then !!![/color]

Right. With your main text at 100%.

And should you be concerned that some of your visitors will find their
default size inconvenient and not know how to change it, you could
always consider the approach I use on my site (see sig).

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles