about css class selector

D

datactrl

Hi,

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

Jack
 
D

Danny@Kendal

datactrl said:
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top