about css

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • datactrl

    #1

    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


  • Hal Rosser

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


    Comment

    • datactrl

      #3
      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@bells outh.net> wrote in message
      news:i3SZc.7946 2$0o5.3270@bign ews1.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]


      Comment

      • Grant Wagner

        #4
        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@bells outh.net> wrote in message
        > news:i3SZc.7946 2$0o5.3270@bign ews1.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@agrico reunited.com>
        comp.lang.javas cript FAQ - http://jibbering.com/faq

        Comment

        • datactrl

          #5
          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@agrico reunited.com> wrote in message
          news:41387574.3 3F07056@agricor eunited.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@bells outh.net> wrote in message
          > > news:i3SZc.7946 2$0o5.3270@bign ews1.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@agrico reunited.com>
          > comp.lang.javas cript FAQ - http://jibbering.com/faq
          >[/color]


          Comment

          • Michael Winter

            #6
            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.infosystem s.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.

            Comment

            • Thomas 'PointedEars' Lahn

              #7
              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.infosystem s.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.

              Comment

              Working...