Connecting Tech Pros Worldwide Forums | Help | Site Map

about css

datactrl
Guest
 
Posts: n/a
#1: Jul 23 '05
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



Hal Rosser
Guest
 
Posts: n/a
#2: Jul 23 '05

re: about css


table.something tr td {color:burple;}

"datactrl" <quals@tpg.com.au> wrote in message
news:4137d033$1@dnews.tpgi.com.au...[color=blue]
> 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
>
>[/color]


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


datactrl
Guest
 
Posts: n/a
#3: Jul 23 '05

re: about css


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" <hmrosser@bellsouth.net> wrote in message
news:i3SZc.79462$0o5.3270@bignews1.bellsouth.net.. .[color=blue]
> table.something tr td {color:burple;}
>
> "datactrl" <quals@tpg.com.au> wrote in message
> news:4137d033$1@dnews.tpgi.com.au...[color=green]
> > Hi, all
> >
> > How do I define a css selector for TD elements working only if it is in[/color][/color]
a[color=blue][color=green]
> > table which has a class ="something"? Thanks a lot!
> >
> > Jack
> >
> >[/color]
>
>
> ---
> 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
>
>[/color]


Grant Wagner
Guest
 
Posts: n/a
#4: Jul 23 '05

re: about css


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:
[color=blue]
> 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" <hmrosser@bellsouth.net> wrote in message
> news:i3SZc.79462$0o5.3270@bignews1.bellsouth.net.. .[color=green]
> > table.something tr td {color:burple;}
> >
> > "datactrl" <quals@tpg.com.au> wrote in message
> > news:4137d033$1@dnews.tpgi.com.au...[color=darkred]
> > > Hi, all
> > >
> > > How do I define a css selector for TD elements working only if it is in[/color][/color]
> a[color=green][color=darkred]
> > > table which has a class ="something"? Thanks a lot!
> > >
> > > Jack[/color][/color][/color]

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

datactrl
Guest
 
Posts: n/a
#5: Jul 23 '05

re: about css


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" <gwagner@agricoreunited.com> wrote in message
news:41387574.33F07056@agricoreunited.com...[color=blue]
> 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:
>[color=green]
> > 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" <hmrosser@bellsouth.net> wrote in message
> > news:i3SZc.79462$0o5.3270@bignews1.bellsouth.net.. .[color=darkred]
> > > table.something tr td {color:burple;}
> > >
> > > "datactrl" <quals@tpg.com.au> wrote in message
> > > news:4137d033$1@dnews.tpgi.com.au...
> > > > Hi, all
> > > >
> > > > How do I define a css selector for TD elements working only if it is[/color][/color][/color]
in[color=blue][color=green]
> > a[color=darkred]
> > > > table which has a class ="something"? Thanks a lot!
> > > >
> > > > Jack[/color][/color]
>
> --
> Grant Wagner <gwagner@agricoreunited.com>
> comp.lang.javascript FAQ - http://jibbering.com/faq
>[/color]


Michael Winter
Guest
 
Posts: n/a
#6: Jul 23 '05

re: about css


On Sat, 4 Sep 2004 00:36:21 +1000, datactrl <quals@tpg.com.au> wrote:
[color=blue]
> 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,[/color]

Which is the point of Grant's, probably rhetorical, question.
[color=blue]
> just expect the help form one newsgroup.[/color]

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.
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
#7: Jul 23 '05

re: about css


datactrl wrote:
[color=blue]
> [...] Why I ask css questions here is just because[/color]

you lack a minimum Usenet clue.
[color=blue]
> javascript, dhtml and css are always involved each other on
> the page authorising.[/color]

Nonsense.
[color=blue]
> Anyway this questions actually has nothing with javascript,[/color]

So post to comp.infosystems.www.authoring.stylesheets!
[color=blue]
> just expect the help form one newsgroup.
> [Top post][/color]

Take heed of the <http://jibbering.com/faq/> or go away.


PointedEars
--
Get your bug fixed and stop it breeding.
Closed Thread


Similar JavaScript / Ajax / DHTML bytes