469,575 Members | 1,658 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,575 developers. It's quick & easy.

about css class selector

Hi,

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

Jack


Jul 23 '05 #1
2 1460
"datactrl" <qu***@tpg.com.au> wrote in message
news:41********@dnews.tpgi.com.au...
Hi,

Can I define a css class selector depending on another class selector?


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>
Jul 23 '05 #2
Thanks a lot, Danny. It's exactly what I want.

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

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Bill M. | last post: by
3 posts views Thread by riki | last post: by
7 posts views Thread by Philip Herlihy | last post: by
1 post views Thread by Timo Nentwig | last post: by
13 posts views Thread by Patient Guy | last post: by
8 posts views Thread by pamelafluente | last post: by
25 posts views Thread by toffee | last post: by
12 posts views Thread by WaterWalk | last post: by
3 posts views Thread by shapper | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.