473,748 Members | 3,604 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2433
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*******@THIS ix.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*****@spamrc n.com> wrote:
On Wed, 25 Feb 2004 02:47:35 GMT, Mason A. Clark
<ma*******@THI Six.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*******@THIS ix.netcom.comQ> wrote:
On Tue, 24 Feb 2004 22:49:10 -0500, Neal <ne*****@spamrc n.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*******@THIS ix.netcom.comQ> wrote:
On Tue, 24 Feb 2004 22:49:10 -0500, Neal <ne*****@spamrc n.com> wrote:
On Wed, 25 Feb 2004 02:47:35 GMT, Mason A. Clark
<ma*******@TH ISix.netcom.com Q> 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
6646
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 RTB control. Whenever I change the font type during the runtime by selecting a font name from a combobox -of all system fonts, the text changes its font correctly but I loose some formatting such as a bold text and/or titles become normal text.
6
10499
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 done without API calls? Thanks Ioannis
3
1852
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() rtbData.SelectionFont = New Font(f, f.Style + (IIf(f.Bold, FontStyle.Bold * -1, FontStyle.Bold)))
7
2972
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 already formatted as "Shopping" ---Bold "for" -----Regular Now I want to underline whole text by preserving old style i.e. Bold and
15
40981
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: echo "<font face='arial' size='1'>"; echo " <TABLE BORDER=1> <TR>
15
3910
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; margin-left: -400px; width: 800px; height: 26px"> <!-- CODE GOES HERE --> </div>
1
1869
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 those referred to a LinkButton type of control. But in cases where someone is using the PushButton there are no posted solutions. Whenever these changes are made to the PushButton control they do not make any requested changes. I have seen one...
0
1365
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 = new Font("MUD 10",8, FontStyle.Regular); and then calling it in the text changed function private void DisplayBox_TextChanged(object sender, EventArgs e) { DisplayBox.Font = MUDFONT;
1
3985
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 someone please show me how to change the font programmatically? Thanks
6
2857
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 font of Arial and 8.25pt. Great.
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8830
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9544
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9324
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8243
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.