By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,106 Members | 2,679 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,106 IT Pros & Developers. It's quick & easy.

about css class selector

P: n/a
Hi,

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

Jack


Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"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

P: n/a
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.