473,385 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

font size in table

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
7 13221
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Isaac Grover | last post by:
Hi everyone, Rather than have this construct in my pages: <table> <tr><td><font face=arial size=3>line1</font></td></tr> <tr><td><font face=arial size=3>line2</font></td></tr> <tr><td><font...
11
by: Jon | last post by:
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...
4
by: Csaba Gabor | last post by:
What I'd like to do is to be able to set the font of a textarea element to the same font that another element is using (say, for example, an <INPUT type=text ...> element, but if that's a no go,...
2
by: Dave Moore | last post by:
Hi, I want to use CSS to define the font size in every cell of a table. This avoids needing to define the font size in every <TD> tag using the normal multiple HTML <FONT SIZE="2"> notation....
9
by: Adam | last post by:
Can someone please help!! I am trying to figure out what a font is? Assume I am working with a fixed font say Courier 10 point font Question 1: What does this mean 10 point font Question 2:...
7
by: xformer | last post by:
Hello everybody, today I was working on a web site when I found a strange effect. Take the following html document: ----begin---- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01...
0
by: benfly08 | last post by:
Hi, guys. I'm developing a web application for Sales Department people in my company. I used my 1024X768 resolution and "Medium" IE text size to test my Layout and it worked fine. However, some...
17
by: teser3 | last post by:
I can put out a Word Doc from PHP but if I try and manipulate the font size in the PHP part it outputs a blank Word Document. Here is what I have: <?php $fname="report.doc"; $handle = fopen(...
3
by: PYG | last post by:
Hi everybody I have a simple question : If i use this code : <body style="font-size:24px;color:blue;"> Text in body <table> <tr><td> Text in table
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.