473,657 Members | 2,735 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 1711
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{fo nt-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{fo nt-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{fo nt-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*******@nets cape.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

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

Similar topics

133
6555
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 designer, many web-sites offer an image of the text instead to "force" this font -- which certainly can't be the solution (it's a bit of a hassle to maintain and create).
300
18283
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 size. The HTML "hardcore elititst" profess that it is a useless font because it is too big compared to other fonts. Personally I do not care one way or the other, but I generally trust
1
2377
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 others to define a certain font (MS Arial Unicode) for the user controls, and provide custom controls which have the font property fixed set to this font. The application is supposed to be used in different countries (including China), so I wonder...
2
4483
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 best for evenness?
16
3887
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 IMO. I read somewhere (a W3C tip I think) that the best way is to specify a "base" size and then have all your fonts relative that, but I'm not sure how that works. TIA
37
4179
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 required for a screen reader (text to speech) for accessibility, to help the reader software use the correct presentation method (e.g. correct language module).
1
1146
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 code so that when I port to another computer, it will use the same font no matter what the default font the new computer use?
24
5337
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 ended up wanting a 3-column layout. Now I see that IE7 mess things up. First of all there's a left margin which I don't know why it exists. Secondly when I see the page the fonts are way too big. I first had body{font-size:0.62em} but now...
1
8633
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 field to obtain the user’s input. Thanks. ----------------------------------------------------------------- import javax.swing.*; import java.awt.*; import java.awt.event.*;
53
5240
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 non-support. I'm wondering if there's some way I could still get a primitive version of this functionality, because different fonts display at very different optical sizes for the same nominal sizes. For example, suppose I want type to display in...
0
8407
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
8837
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
8512
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
7347
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
6175
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
5638
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2739
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
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.