473,465 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to apply font to entire table?

How do I apply a font name to an entire HTML table without specifying it in
each cell/row, or applying a CSS ID to each cell or row?

--
- Dave
Jul 23 '05 #1
3 31785
In article,
"Dave" wrote:
How do I apply a font name to an entire HTML table without specifying it in
each cell/row, or applying a CSS ID to each cell or row?


Use CSS on the table.

table {
font-family: Helvetica, sans-serif;
}

--
Kris(nl)
Jul 23 '05 #2
Kris wrote:
In article <btvsd.104384$tU4.60008@okepread06>,
"Dave" wrote:
How do I apply a font name to an entire HTML table without specifying it in
each cell/row, or applying a CSS ID to each cell or row?


Use CSS on the table.

table {
font-family: Helvetica, sans-serif;
}


Or, if you only want it to apply to a specific table, give it an ID
and

table#mytableID { font-family: ...; }

or for a particular kind of table, define a class for tables of that
type, and

table.mytableclass { font-family: ...; }

To apply one set of properties to header cells (TH) and another to
data cells (TD),

table TD { ... }
table TH { ... }

or

table#mytableID TD { ... }

etc.

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Jul 23 '05 #3
In article <85********************************@4ax.com>,
Harlan Messinger wrote:
How do I apply a font name to an entire HTML table without specifying it
in
each cell/row, or applying a CSS ID to each cell or row?


Use CSS on the table.

table {
font-family: Helvetica, sans-serif;
}


Or, if you only want it to apply to a specific table, give it an ID
and

table#mytableID { font-family: ...; }

or for a particular kind of table, define a class for tables of that
type, and

table.mytableclass { font-family: ...; }

To apply one set of properties to header cells (TH) and another to
data cells (TD),

table TD { ... }
table TH { ... }

or

table#mytableID TD { ... }

etc.


OP: Or make sure IE6 is in Standards Mode (correct DocType line, nothing
in front of it -- no spaces either) and your table will inherit font
properties as it should.

--
Kris (nl)
Jul 23 '05 #4

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

Similar topics

1
by: sqlnewbie | last post by:
I'm a newbie to script writing. I'm trying to write a script to copy all data from a table to the same table in a 2nd database. Both databases are on the same server and are identical in design. ...
9
by: michael | last post by:
Anyone knows if it is possible to make the complete area of a table cell a link onmousover or by hover? In other words, I'd like to link, not only the text within the cell, but the entire cell as...
5
by: Robin Tucker | last post by:
Hi, I need to lock a table so that Inserts are prevented as well as deleted and updates. At present I'm thinking this might do it: SELECT * FROM myTable WITH(UPLOCK) but then again I'm...
22
by: RayPower | last post by:
I'm having problem with using DAO recordset to append record into a table and subsequent code to update other tables in a transaction. The MDB is Access 2000 with the latest service pack of JET 4....
1
by: jasondi | last post by:
Hello, I've a scenario with multiple threads that performs select/insert/update on the same table. Basically, the flow is: SELECT * FROM tablex where pk=? if empty INSERT into tablex...
1
by: finish77 | last post by:
Hello' I'm trying to apply font color in Excel's header. I found out (using a macro) that "KFF0000" represents the color red, but in my application the user can choose what color he wants for the...
20
by: omar999 | last post by:
is it possible to perform a cast function on an entire table via sql? im basically trying to select all table contents multiply by 1.1 and then display the converted data on a webpage using sql,...
0
by: Tim Mullin | last post by:
Hi all, This is a request that seems pretty common, but I have yet to find a definitive answer for it. I'm also fairly new to Access/VBA, so my apologies if this seems redundant. I would like...
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
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
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
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,...
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...
1
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
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
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 ...

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.