By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,854 Members | 833 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,854 IT Pros & Developers. It's quick & easy.

font size in table

P: n/a
Jon
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
Jul 20 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Els


Jon wrote:
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?
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.
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.

--
Els

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

Jul 20 '05 #2

P: n/a
Jon wrote:

I have table text set to 85%, I may change that to em's but for now haven't
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).
If I have a table nested within the table I get font size of 85% of 85% =
72% - too small.
I'm glad you realize this.
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.
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.
(sent to .authoring.html and .authoring.stylesheets)


followup to c.i.a.w.s

--
Reply address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 20 '05 #3

P: n/a
It seems "Jon" wrote in comp.infosystems.www.authoring.html:
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?
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.
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.


"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/
Jul 20 '05 #4

P: n/a
Jon
>>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.

<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
Jul 20 '05 #5

P: n/a
Jon <jon@SPAM_OFFtheexperts.co.uk> wrote in
<c1**********@titan.btinternet.com>
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.


<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.

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.

Jul 20 '05 #6

P: n/a
Jon
<snip>
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.

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.


Agreed, so % it is then !!!

Jon
Jul 20 '05 #7

P: n/a
On Sun, 22 Feb 2004 18:24:17 +0000 (UTC), "Jon"
<jon@SPAM_OFFtheexperts.co.uk> wrote:
<snip>
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.


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.


Agreed, so % it is then !!!


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/
Jul 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.