473,503 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Specify one font for a many-celled table

Is there a way to tell CSS to specify one font for a table that has many
cells in which the font is being used? As in, one font that represents the
table itself (rather than specifying in every cell)

Thanks! :-)
Mar 15 '06 #1
10 1696
Yeah schreef:
Is there a way to tell CSS to specify one font for a table that has many
cells in which the font is being used? As in, one font that represents the
table itself (rather than specifying in every cell)

Thanks! :-)


There are many possibilities:

table{font-family: Verdana;}

or...

table#idName{font-family: Verdana;}

or...

table th{font-family: Verdana;}
table td{font-family: Arial;}


--
Niek
Mar 15 '06 #2
'sNiek wrote:
Yeah schreef:
Is there a way to tell CSS to specify one font for a table that has
many cells in which the font is being used? As in, one font that
represents the table itself (rather than specifying in every cell)


There are many possibilities:

table{font-family: Verdana;}

or...

table#idName{font-family: Verdana;}

or...

table th{font-family: Verdana;}
table td{font-family: Arial;}


Please don't recommend Verdana. Thanks.

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

--
-bts
-Warning: I brake for lawn deer
Mar 15 '06 #3
Beauregard T. Shagnasty schreef:
'sNiek wrote:
Yeah schreef:
Is there a way to tell CSS to specify one font for a table that has
many cells in which the font is being used? As in, one font that
represents the table itself (rather than specifying in every cell)

There are many possibilities:

table{font-family: Verdana;}

or...

table#idName{font-family: Verdana;}

or...

table th{font-family: Verdana;}
table td{font-family: Arial;}


Please don't recommend Verdana. Thanks.

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


Come on man, we had a discussion on that months ago.
(http://tinyurl.com/mzeek)

It's just an example by the way to show the difference in the type used
for TH's and the TD's.

--
Niek
Mar 15 '06 #4
On Wed, 15 Mar 2006, 'sNiek wrote:
Beauregard T. Shagnasty schreef:
Please don't recommend Verdana. Thanks.

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

I had the same thought, indeed.
Come on man, we had a discussion on that months ago.
So you're telling us, in public, that you knew all about the point of
contention - and deliberately chose to ignore it? That's not nice.
It's just an example [...]


So - don't you have any ambition to make it a *good* example?
Mar 15 '06 #5
Alan J. Flavell schreef:
On Wed, 15 Mar 2006, 'sNiek wrote:
Beauregard T. Shagnasty schreef:
Please don't recommend Verdana. Thanks.

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

I had the same thought, indeed.
Come on man, we had a discussion on that months ago.


So you're telling us, in public, that you knew all about the point of
contention - and deliberately chose to ignore it? That's not nice.


I just named a typeface everybody kwows, and yes: I deliberatly
'ignored' it. Your point of view is not a law, IMO
It's just an example [...]


So - don't you have any ambition to make it a *good* example?


It's a good examle, I didn't scale the verdana did I?
--
Niek
Mar 15 '06 #6
On Wed, 15 Mar 2006, Alan J. Flavell wrote:
Please don't recommend Verdana. Thanks.


I had the same thought, indeed.


Verdana in itself is not evil®. It is the combination with
"font-size: 80%" that is evil®.

--
Evil® is a registered trademark of the President of the United States.

Mar 15 '06 #7
On Wed, 15 Mar 2006, Andreas Prilop wrote:
On Wed, 15 Mar 2006, Alan J. Flavell wrote:
Please don't recommend Verdana. Thanks.
I had the same thought, indeed.


Verdana in itself is not evil®.


I don't think anyone has said it is. There are plenty of (off-topic)
situations where it does a fine job. The point ("no pun intended") is
that it does not go well with author-specified fonts on the WWW.
It is the combination with "font-size: 80%" that is evil®.


The root cause is the fact that Verdana is perceived to be so much
larger than typical fonts at a given nominal size.

The resulting temptation on authors to reduce it in size is really a
secondary effect.

*If only* the idea of font-size-adjust had been taken on board, and
developed into something practical, this need not have been a problem.

But, as it is, the same nominal size is applied to all the available
fonts, which is where Verdana goes wrong. Poley's sampler
http://www.xs4all.nl/~sbpoley/webmat...erdanacomp.png
surely makes that clear?
Mar 15 '06 #8
'sNiek wrote:
Beauregard T. Shagnasty schreef:
Please don't recommend Verdana. Thanks.

http://www.xs4all.nl/~sbpoley/webmatters/verdana.html
Come on man, we had a discussion on that months ago.
(http://tinyurl.com/mzeek)


Why, yes we did. <g> (I've already forgotten what I had for breakfast.)
It's just an example by the way to show the difference in the type
used for TH's and the TD's.


Sure, I understood that.

--
-bts
-Warning: I brake for lawn deer
Mar 15 '06 #9
Wed, 15 Mar 2006 18:12:11 +0100 from 'sNiek <ni*******@netscape.net>:
Alan J. Flavell schreef:
So you're telling us, in public, that you knew all about the point of
contention - and deliberately chose to ignore it? That's not nice.
I just named a typeface everybody kwows, and yes: I deliberatly
'ignored' it. Your point of view is not a law, IMO


Well, there _is_ Flavell's Law, but that's not relevant here. Alan's
point of view is usually right, and never worth dismissing out of
hand.

*plonk*

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Mar 15 '06 #10
Stan Brown schreef:
*plonk*


Did you realy do that? Why? Oh well, you don't see this so why bother.
--
Niek
Mar 16 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

133
6444
by: Philipp Lenssen | last post by:
Why is there no standardized and well-working way for a web-page to offer the font for download/embed it, in order to be displayed on the page? No matter what you think of the preferred font of a...
300
18063
by: Ståle Sæbøe | last post by:
I am a bit curious about this. The graphic design people I work with say it is their preferred font for web pages. The reason being that it is "kinder" to the eye both in terms of shape and...
1
2366
by: Joerg | last post by:
I am in the process of creating an international GUI application with C# on ..NET1.1 (Win2k), which is supposed to implement a particular look/design. In order to achieve this, I plan amongst...
2
4472
by: Tony | last post by:
Yes, I need to specify a font type so that the characters will be evenly spaced when I write to a tab delimited text file. So how does one specify a font type to write/print and which font is...
16
3863
by: JD | last post by:
Hi guys What's the best way to specify font size using CSS? I try to avoid absolute units like pt and px because then users can't resize the fonts in IE, but % and em are a complete pain to use...
37
4150
by: Jan Wagner | last post by:
Hi, can't figure this one out, what's the CSS way to specify the language? In HTML it would be simply an lang="xx" attribute, or XHTML xml:lang="xx", but, how about in CSS? This would be...
1
1138
by: Kueishiong Tu | last post by:
I have a window form application. When I port the application to another computer which has a different default font, the form gets screw up. How do I specify the font a window form use in the...
24
5316
by: Harris Kosmidis | last post by:
I have a site up and running (www.solsoft.gr). I tested it with FF2 and IE6 and works ok with some IE hacks. Ok the CSS isn't good cause I started designing it with another look and the customer...
1
8614
by: FLEMEF | last post by:
Hello All, I'm not very good at Java... With this piece of Java code, how could I modify the StyleOptions.java program to allow the user to specify the size of the font, while using the text...
53
5177
by: Jonas Smithson | last post by:
In his book "CSS: The Definitive Guide" 2nd edition (pgs. 116-117), Eric Meyer has an interesting discussion about "font-size-adjust" that was evidently dropped in CSS 2.1 due to browser...
0
7205
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,...
0
7353
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...
1
7011
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
5596
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,...
1
5023
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...
0
4689
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
401
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...

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.