473,396 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

column styling

Typical table

<table>
<tr><th>field 1</th><th class="field2">field 2</th></tr>
<tr><td>data 1</td><td>data 2</td></tr>
....

Is there a way to style field2 (other than adding classnames in each row) so
that it would affect the whole column?

Jeff
Jul 20 '05 #1
3 1611
On Thu, 01 Jul 2004 00:19:57 GMT, Jeff Thies <no****@nospam.net> wrote:
Typical table

<table>
<tr><th>field 1</th><th class="field2">field 2</th></tr>
<tr><td>data 1</td><td>data 2</td></tr>
...

Is there a way to style field2 (other than adding classnames in each
row) so
that it would affect the whole column?


The only styles you can apply to columns are borders, backgrounds, width
and visibility. See http://ln.hixie.ch/?start=1070385285&count=1
Jul 20 '05 #2
Jeff Thies wrote:
Typical table

<table>
<tr><th>field 1</th><th class="field2">field 2</th></tr>
<tr><td>data 1</td><td>data 2</td></tr>
...

Is there a way to style field2 (other than adding classnames in each row) so
that it would affect the whole column?


In theory, using the <colgroup> element, although support is patchy.

Check out

http://billericaychoral.org.uk/past

with the CSS at:

http://billericaychoral.org.uk/css/real-ptable

--
Mark.
Jul 20 '05 #3
Jeff Thies wrote:
Is there a way to style field2 (other than adding classnames in
each row) so that it would affect the whole column?


http://ln.hixie.ch/?start=1070385285&count=1

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #4

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

Similar topics

5
by: Peter Collinson | last post by:
Hi... Is there any way to style a List Item a different color and size than the <LI> in an Ordered List? I'd like a red super-script number and a dark blue text in a page's footnotes. And...
16
by: Dan V. | last post by:
How do you do a css 2 column layout with header and footer, with the 2nd column auto-stretching so entire page looks good for 800 x 600 resolution as min. and 1024 x 768 resolution as a max? ...
0
by: Daniel Déchelotte | last post by:
Hi, I would like to present one column, extending from the top to the bottom of the viewport, with textured "drop-down shadow" and a textured background. A bit like http://www.blogger.com/, but...
1
by: | last post by:
I'm wondering if it's possible, outside of the declaration of an ASP.NET 2.0 GridView, to programmatically style individual columns. For example, I might want to make the text in a particular...
3
by: Garmt de Vries | last post by:
On the website of the Dutch Jules Verne Society (www.jules-verne.nl), we have several forms that visitors can use to order something, or to apply for membership. Of course, a form's primary purpose...
10
by: Nick | last post by:
Hello, Please pardon my ignorance as I'm sure this is easy to do. I have a datagrid where I want to let the user delete columns. I added a context menu to the datagrid that has a delete option....
31
by: Sarita | last post by:
Hello, this might sound stupid, but I got a really nice homepage template which unfortunately is a 3-Column Fixed Width CSS format. Now I don't have any content for the right column and would...
3
by: Momomo | last post by:
Hi, I am having a problem with a control which is caused by a style on the page which I am not able to trace. If I use the control in a page without any styling it looks ok. Is there a way to...
40
by: Jukka K. Korpela | last post by:
My basic style sheet has a distinctive background and border for forms, to make the structure clearer and to make it visually evident what belongs to a form. However, as people complained that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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,...

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.