471,898 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,898 software developers and data experts.

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 1512
"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 YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.