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

Changing font

P: n/a
I have a complete Intranet site with about 140 pages using Verdana as
the basic font.
How do I place a table (12 columns) with Arial instead of Verdana, only
for that table. I have defined a style in my CSS and tried to apply it
to the table, doesn't work. I have tried to wrap the table in a div
with the style. Doesn't work. I have tried the old-fashioned <font>
tag, doesn't work. I must be doing something wrong.
It works however if I give the individual THs or TDs the style in
question, but I don't want to copy the style (class) into 600
individual cells...
I am sure there is a more elegant way. Can anybody help? Many thanks in
advance.
Sorry I cannot post the URL because it is behind our firewall...

--
François de Dardel
http:/mapage.noos.fr/dardelf
Faber est suae quisque fortunae
Remove fourteen to reply
Enlever le quatorze

Jul 20 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
In article François de Dardel wrote:
I have a complete Intranet site with about 140 pages using Verdana as
the basic font.
How do I place a table (12 columns) with Arial instead of Verdana, only
for that table. I have defined a style in my CSS and tried to apply it
to the table, doesn't work. I have tried to wrap the table in a div
with the style. Doesn't work. I have tried the old-fashioned <font>
tag, doesn't work. I must be doing something wrong.
It works however if I give the individual THs or TDs the style in
question, but I don't want to copy the style (class) into 600
individual cells...
I am sure there is a more elegant way. Can anybody help? Many thanks in
advance.
Sorry I cannot post the URL because it is behind our firewall...


Upload some testcase, or make yourself more clear. Try W3C CSS checker.
We don't know what you have done, so all answers are from dark.

table.class td, table.class th {font-family:Arial !important;}

See also:
http://www.xs4all.nl/~sbpoley/webmatters/verdana.html

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #2

P: n/a
François de Dardel wrote:
How do I place a table (12 columns) with Arial instead of Verdana, only
for that table.


style:
table.foo td, table.foo th { font-family: Arial; }

html:
<table class="foo">

Should work

--

Barbara

http://home.wanadoo.nl/b.de.zoete/html/weblog.html
http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html

Jul 20 '05 #3

P: n/a
On 2004-02-23 23:23:00 +0100, Lauri Raittila <la***@raittila.cjb.net> said:
In article François de Dardel wrote:
I have a complete Intranet site with about 140 pages using Verdana as
the basic font.
How do I place a table (12 columns) with Arial instead of Verdana, only
for that table.
table.class td, table.class th {font-family:Arial !important;}


Thanks, this works perfectly. This is all I needed.
See also:
http://www.xs4all.nl/~sbpoley/webmatters/verdana.html

Yes, I have read that before, but finally I keep Verdana on these
(Intranet) pages. On other pages, I leave it open, but my preference is
for Lucida Grande, and not many PCs have that. When I access on my Mac
pages written (for PC) with font size =2 or even 1, I just can't read.
There is no simple solution to that. Safari (on the Mac) is now the
most clever browser, as it scales even font sizes given in px...

--
François de Dardel
http:/mapage.noos.fr/dardelf
Faber est suae quisque fortunae
Remove fourteen to reply
Enlever le quatorze

Jul 20 '05 #4

P: n/a
On Tue, 24 Feb 2004 00:23:00 +0200, Lauri Raittila <la***@raittila.cjb.net>
wrote:

snipped to the point:

See also:
http://www.xs4all.nl/~sbpoley/webmatters/verdana.html


which *validated* page fails at the bottom line in MSIE6. An html table
would have worked :-)

Mason C or how about a non-valid page?
Jul 20 '05 #5

P: n/a
On Wed, 25 Feb 2004 02:47:35 GMT, Mason A. Clark
<ma*******@THISix.netcom.comQ> wrote:
On Tue, 24 Feb 2004 00:23:00 +0200, Lauri Raittila
<la***@raittila.cjb.net>
wrote:

snipped to the point:

See also:
http://www.xs4all.nl/~sbpoley/webmatters/verdana.html


which *validated* page fails at the bottom line in MSIE6. An html table
would have worked :-)

Mason C or how about a non-valid page?

What are you talking about? This page looks fine in IE6. And why a table
here? I'm beginning to think some people believe the use of table layout
is the key to peace in the Middle East...
Jul 20 '05 #6

P: n/a
On Tue, 24 Feb 2004 22:49:10 -0500, Neal <ne*****@spamrcn.com> wrote:
On Wed, 25 Feb 2004 02:47:35 GMT, Mason A. Clark
<ma*******@THISix.netcom.comQ> wrote:
On Tue, 24 Feb 2004 00:23:00 +0200, Lauri Raittila
<la***@raittila.cjb.net>
wrote:

snipped to the point:

See also:
http://www.xs4all.nl/~sbpoley/webmatters/verdana.html


which *validated* page fails at the bottom line in MSIE6. An html table
would have worked :-)

Mason C or how about a non-valid page?

What are you talking about? This page looks fine in IE6. And why a table
here? I'm beginning to think some people believe the use of table layout
is the key to peace in the Middle East...


I see: copy/paste of bottom line:

Incidentally it is sometimes said that using Verdana in a user stylesheet is
sound, but even this is doubtful: an inoffensive author style specification like
font-family: serif; font-size: 100% will leave you with text

....end of paste...

funny way to end a sentence ! But the last line comes and goes, depending
on the proximity of the mouse, the browser font size, and the weather.
Typical of CSS. An html table would never be so unstable.

WindowsXP MSIE 6 1024x768 not that they matter. (It looks ok in Opera.)

And there is no key to peace in the Middle East.... but since you raised
the subject:

http://masonc.home.netcom.com/westbank.html

Mason C blame yourself
Jul 20 '05 #7

P: n/a
On Wed, 25 Feb 2004 07:45:17 GMT, Mason A. Clark
<ma*******@THISix.netcom.comQ> wrote:
On Tue, 24 Feb 2004 22:49:10 -0500, Neal <ne*****@spamrcn.com> wrote:
What are you talking about? This page looks fine in IE6. And why a table
here? I'm beginning to think some people believe the use of table layout
is the key to peace in the Middle East...


I see: copy/paste of bottom line:

Incidentally it is sometimes said that using Verdana in a user
stylesheet is
sound, but even this is doubtful: an inoffensive author style
specification like
font-family: serif; font-size: 100% will leave you with text

...end of paste...

funny way to end a sentence ! But the last line comes and goes,
depending
on the proximity of the mouse, the browser font size, and the weather.
Typical of CSS. An html table would never be so unstable.

WindowsXP MSIE 6 1024x768 not that they matter. (It looks ok in
Opera.)

Well, running IE6 on W98 at same monitor resolution and guess what, I
can't get that line to disappear. It's all there perfectly, in Opera 7.23
and IE6. Maybe clear your cache, perhaps you didn't get all the code
downloaded.
Jul 20 '05 #8

P: n/a
On Wed, 25 Feb 2004 07:45:17 GMT, Mason A. Clark
<ma*******@THISix.netcom.comQ> wrote:
On Tue, 24 Feb 2004 22:49:10 -0500, Neal <ne*****@spamrcn.com> wrote:
On Wed, 25 Feb 2004 02:47:35 GMT, Mason A. Clark
<ma*******@THISix.netcom.comQ> wrote:
On Tue, 24 Feb 2004 00:23:00 +0200, Lauri Raittila
<la***@raittila.cjb.net>
wrote:

See also:
http://www.xs4all.nl/~sbpoley/webmatters/verdana.html

which *validated* page fails at the bottom line in MSIE6. An html table
would have worked :-)
What are you talking about? This page looks fine in IE6.
I see: copy/paste of bottom line:

Incidentally it is sometimes said that using Verdana in a user stylesheet is
sound, but even this is doubtful: an inoffensive author style specification like
font-family: serif; font-size: 100% will leave you with text

...end of paste...

funny way to end a sentence ! But the last line comes and goes, depending
on the proximity of the mouse, the browser font size, and the weather.
Typical of CSS. An html table would never be so unstable.

WindowsXP MSIE 6 1024x768 not that they matter. (It looks ok in Opera.)


Weird. Looks fine in IE6 on XP to me, at various window and font sizes,
and repeatedly refreshed and scrolled. But it's snowing here at present,
so maybe that's the difference ...

I'd suggest however that the phenomenon is better described as "typical
of IE", not "typical of CSS". In any case that paragraph is not
positioned or floated with CSS, so I'm not sure what you want me to use
a table to do.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.