HighDots Forums  

Specify one font for a many-celled table

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Specify one font for a many-celled table in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Yeah
 
Posts: n/a

Default Specify one font for a many-celled table - 03-15-2006 , 08:58 AM






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! :-)



Reply With Quote
  #2  
Old   
'sNiek
 
Posts: n/a

Default Re: Specify one font for a many-celled table - 03-15-2006 , 09:13 AM






Yeah schreef:
Quote:
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


Reply With Quote
  #3  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: Specify one font for a many-celled table - 03-15-2006 , 10:27 AM



'sNiek wrote:

Quote:
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


Reply With Quote
  #4  
Old   
'sNiek
 
Posts: n/a

Default Re: Specify one font for a many-celled table - 03-15-2006 , 10:45 AM



Beauregard T. Shagnasty schreef:
Quote:
'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


Reply With Quote
  #5  
Old   
Alan J. Flavell
 
Posts: n/a

Default Re: Specify one font for a many-celled table - 03-15-2006 , 10:51 AM



On Wed, 15 Mar 2006, 'sNiek wrote:

Quote:
Beauregard T. Shagnasty schreef:

Please don't recommend Verdana. Thanks.

http://www.xs4all.nl/~sbpoley/webmatters/verdana.html
I had the same thought, indeed.

Quote:
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.

Quote:
It's just an example [...]
So - don't you have any ambition to make it a *good* example?


Reply With Quote
  #6  
Old   
'sNiek
 
Posts: n/a

Default Re: Specify one font for a many-celled table - 03-15-2006 , 11:12 AM



Alan J. Flavell schreef:
Quote:
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

Quote:
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


Reply With Quote
  #7  
Old   
Andreas Prilop
 
Posts: n/a

Default Re: Specify one font for a many-celled table - 03-15-2006 , 11:13 AM



On Wed, 15 Mar 2006, Alan J. Flavell wrote:

Quote:
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.



Reply With Quote
  #8  
Old   
Alan J. Flavell
 
Posts: n/a

Default Re: Specify one font for a many-celled table - 03-15-2006 , 11:34 AM



On Wed, 15 Mar 2006, Andreas Prilop wrote:

Quote:
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.

Quote:
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?


Reply With Quote
  #9  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: Specify one font for a many-celled table - 03-15-2006 , 12:29 PM



'sNiek wrote:

Quote:
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.)

Quote:
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


Reply With Quote
  #10  
Old   
Stan Brown
 
Posts: n/a

Default Re: Specify one font for a many-celled table - 03-15-2006 , 01:20 PM



Wed, 15 Mar 2006 18:12:11 +0100 from 'sNiek <niekemmen (AT) netscape (DOT) net>:
Quote:
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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.