about css class selector

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

    about css class selector

    Hi,

    Can I define a css class selector depending on another class selector?
    Thanks a lot!

    Jack




  • Danny@Kendal

    #2
    Re: about css class selector

    "datactrl" <quals@tpg.com. au> wrote in message
    news:413736f4$1 @dnews.tpgi.com .au...[color=blue]
    > Hi,
    >
    > Can I define a css class selector depending on another class selector?[/color]

    Do you mean like this?

    class1{some style stuff here}
    class2 = class1 + {some more style stuff here}

    I found two ways:

    1)
    class1, class2{common style stuff here}
    class2{class2 specific style stuff here}

    2}
    class1{style stuff here}
    class2{more style stuff here}
    ....and combine them like this...
    <div class="class1 class2">Summat here</div>


    Comment

    • datactrl

      #3
      Re: about css class selector

      Thanks a lot, Danny. It's exactly what I want.

      Jack
      [color=blue]
      > Do you mean like this?
      >
      > class1{some style stuff here}
      > class2 = class1 + {some more style stuff here}
      >
      > I found two ways:
      >
      > 1)
      > class1, class2{common style stuff here}
      > class2{class2 specific style stuff here}
      >
      > 2}
      > class1{style stuff here}
      > class2{more style stuff here}
      > ...and combine them like this...
      > <div class="class1 class2">Summat here</div>
      >
      >[/color]


      Comment

      Working...