473,508 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

about css

Hi, all

How do I define a css selector for TD elements working only if it is in a
table which has a class ="something"? Thanks a lot!

Jack
Jul 23 '05 #1
6 1059
table.something tr td {color:burple;}

"datactrl" <qu***@tpg.com.au> wrote in message
news:41********@dnews.tpgi.com.au...
Hi, all

How do I define a css selector for TD elements working only if it is in a
table which has a class ="something"? Thanks a lot!

Jack

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.744 / Virus Database: 496 - Release Date: 8/25/2004
Jul 23 '05 #2
Thanks, Hal Rosser.

It works with table.something tr td {color:burple;}. I try to do like:
table.something.another.3rd tr td {color:burple;}
It seems to work for "3rd" only. That is I try to specify a table with a
class name of "something", "another" or "3rd".

Jack
"Hal Rosser" <hm******@bellsouth.net> wrote in message
news:i3******************@bignews1.bellsouth.net.. .
table.something tr td {color:burple;}

"datactrl" <qu***@tpg.com.au> wrote in message
news:41********@dnews.tpgi.com.au...
Hi, all

How do I define a css selector for TD elements working only if it is in a table which has a class ="something"? Thanks a lot!

Jack

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.744 / Virus Database: 496 - Release Date: 8/25/2004

Jul 23 '05 #3
table.something tr td,
table.another tr td,
table.3rd tr td {color:burple;}

Just curious, why would you ask this in a JavaScript newsgroup?

datactrl wrote:
Thanks, Hal Rosser.

It works with table.something tr td {color:burple;}. I try to do like:
table.something.another.3rd tr td {color:burple;}
It seems to work for "3rd" only. That is I try to specify a table with a
class name of "something", "another" or "3rd".

Jack

"Hal Rosser" <hm******@bellsouth.net> wrote in message
news:i3******************@bignews1.bellsouth.net.. .
table.something tr td {color:burple;}

"datactrl" <qu***@tpg.com.au> wrote in message
news:41********@dnews.tpgi.com.au...
Hi, all

How do I define a css selector for TD elements working only if it is in a table which has a class ="something"? Thanks a lot!

Jack


--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #4
Thanks Grant. It works. Why I ask css questions here is just because
javascript, dhtml and css are always involved each other on the page
authorising. Anyway this questions actually has nothing with javascript,
just expect the help form one newsgroup.

Jack
"Grant Wagner" <gw*****@agricoreunited.com> wrote in message
news:41***************@agricoreunited.com...
table.something tr td,
table.another tr td,
table.3rd tr td {color:burple;}

Just curious, why would you ask this in a JavaScript newsgroup?

datactrl wrote:
Thanks, Hal Rosser.

It works with table.something tr td {color:burple;}. I try to do like:
table.something.another.3rd tr td {color:burple;}
It seems to work for "3rd" only. That is I try to specify a table with a
class name of "something", "another" or "3rd".

Jack

"Hal Rosser" <hm******@bellsouth.net> wrote in message
news:i3******************@bignews1.bellsouth.net.. .
table.something tr td {color:burple;}

"datactrl" <qu***@tpg.com.au> wrote in message
news:41********@dnews.tpgi.com.au...
> Hi, all
>
> How do I define a css selector for TD elements working only if it is
in a
> table which has a class ="something"? Thanks a lot!
>
> Jack


--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #5
On Sat, 4 Sep 2004 00:36:21 +1000, datactrl <qu***@tpg.com.au> wrote:
Thanks Grant. It works. Why I ask css questions here is just because
javascript, dhtml and css are always involved each other on the page
authorising. Anyway this questions actually has nothing with javascript,
Which is the point of Grant's, probably rhetorical, question.
just expect the help form one newsgroup.


However, it would be better to get help from the most appropriate group.
CSS questions should be directed to

comp.infosystems.www.authoring.stylesheets

By the way, the 'tr' in the selectors suggested so far are superfluous. A
TD element must always be a child of a TR element as a basic requirement
of HTML. Nothing is gained by specifying that relationship in the selector.

table.something td,
table.another td,
table.3rd td {color:burple;}

will do just fine and involve less processing by the user agent.

[snip]

Mike
Please don't top-post.

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #6
datactrl wrote:
[...] Why I ask css questions here is just because
you lack a minimum Usenet clue.
javascript, dhtml and css are always involved each other on
the page authorising.
Nonsense.
Anyway this questions actually has nothing with javascript,
So post to comp.infosystems.www.authoring.stylesheets!
just expect the help form one newsgroup.
[Top post]


Take heed of the <http://jibbering.com/faq/> or go away.
PointedEars
--
Get your bug fixed and stop it breeding.
Jul 23 '05 #7

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

Similar topics

1
2821
by: eScrewDotCom | last post by:
eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is very funny. eScrew...
220
18805
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
8
2447
by: eScrewDotCom | last post by:
eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is very funny. eScrew...
77
5626
by: nospam | last post by:
Reasons for a 3-tier achitecture for the WEB? (NOTE: I said, WEB, NOT WINDOWS. DON'T shoot your mouth off if you don't understand the difference.) I hear only one reason and that's to switch a...
125
14542
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
5
2981
by: eScrewDotCom | last post by:
www.eScrew.com eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is...
81
7223
by: Matt | last post by:
I have 2 questions: 1. strlen returns an unsigned (size_t) quantity. Why is an unsigned value more approprate than a signed value? Why is unsighned value less appropriate? 2. Would there...
0
2432
by: eScrewDotCom | last post by:
eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is very funny. eScrew...
7
3123
by: Edward Yang | last post by:
A few days ago I started a thread "I think C# is forcing us to write more (redundant) code" and got many replies (more than what I had expected). But after reading all the replies I think my...
0
7342
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
7410
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
7067
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
7505
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
5650
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,...
0
3215
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...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1570
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 ...
0
440
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.