473,397 Members | 2,068 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,397 software developers and data experts.

Changing font

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

Similar topics

3
by: Cengiz Ulku | last post by:
Hi all, I know now how to change the font name of a RTF file in a RTB control using, for example: RTextBox1.SelFontName = cmbFonts.Text I have a RTF file -created with Word- displayed in a...
6
by: Ioannis Demetriades | last post by:
Hi, I need to change the printer's font to "control" -a printer font, and then send a sequence of characters to the printer. My problem is that I cannot change the printer's font. Can this be...
3
by: Sakharam Phapale | last post by:
Hi All, I am using a richTextBox control for text editing purpose. I have written following procedure which change the font style of richTextBox. Dim f as font = rtbData.selectionFont() ...
7
by: Sakharam Phapale | last post by:
Hi All, How to preserve the old font properties while changing new one? I posted same question 2 months back, but I had very small time then. eg. "Shopping for" is a text in RichTextBox and...
15
by: mart2006 | last post by:
Hi, This is probably really simple to most of you but I have a PHP based website that I want to change the font (of the outputted HTML) and I'm really struggling! Here is a snippet of my code: ...
15
by: phillip.s.powell | last post by:
<style> div div table tr td a.navbar, div div table tr td font {display: none;} </style> <div class="navigationbar" style="background-color:Black; position: absolute; left:50%; top:127px;...
1
by: Blasting Cap | last post by:
I am having trouble changing the font for a PushButton control in a datagrid button column. I have seen several posts refer to styles and simple changes to the HTML for font changes but most of...
0
by: nitehawk416 | last post by:
I want to change the font of my rich text box to a font I downloaded. In the properties the font isn't there, so I tried changing it through the code with this variable declaration Font MUDFONT =...
1
by: Randy | last post by:
I've got an ASP VS 2005 project. I'm trying to figure out how to programmatically change the font of a label. From memory, this was done easily in 2003, but the Font property is read-only. Can...
6
by: andrew.ames | last post by:
Hi I have a pretty basic windows application created in Visual Studio 2005 and VB.NET. I set my Form's font to Arial 8.25pt, so when i added a label and a button they automatically have a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.