pmdesign Posted November 2, 2006 Share Posted November 2, 2006 Hi,I know about those definitions:parent_class.class1{}parent_class.class2{}parent_class.class3{}...where parent_class is a standart tag.Can i group the classes like this:parent_class{.class1{}.class2{}.class3{}}so all subclasses gets it's parent definitions + their own Link to comment Share on other sites More sharing options...
real_illusions Posted November 2, 2006 Share Posted November 2, 2006 not that i'm aware of.you'll probably get around this by using a mixture of classes and id's.without knowing what things you're trying to style, then, i cant be much more of help in an exact way to what you're trying to achieve. Link to comment Share on other sites More sharing options...
utopia Posted November 3, 2006 Share Posted November 3, 2006 not like that but you can do it differentlydiv.parent {parent properties}div.parent div.child1 {child properties in addition to the previously set parent properties}but if you were going for an object oriented idea ... forget it ... not yet use XSLT there u can do such thins Link to comment Share on other sites More sharing options...
aspnetguy Posted November 3, 2006 Share Posted November 3, 2006 you can also assign more than one class to an elementdiv class="class1 class2 class3"></div>Don't know if that will help you or not. Link to comment Share on other sites More sharing options...
jlhaslip Posted November 3, 2006 Share Posted November 3, 2006 div class="class1 class2 class3"></div>Some Browsers don't like more than two classes being used at once, though. Link to comment Share on other sites More sharing options...
dalewb Posted November 22, 2006 Share Posted November 22, 2006 not like that but you can do it differentlydiv.parent {parent properties}div.parent div.child1 {child properties in addition to the previously set parent properties}but if you were going for an object oriented idea ... forget it ... not yet use XSLT there u can do such thinsI'm sorry but would you please provide a code example of the above? It's exactly what I want to do, but I'm not sure how to exactly code such a thing. Would it be something like#bannerdiv {properties;}#bannerdiv #bannerdivchild {additional properties;}? Link to comment Share on other sites More sharing options...
jlhaslip Posted November 22, 2006 Share Posted November 22, 2006 Just a note that you are now referring to named or 'id'd' elements and not classes. Classes have the dot in front (.), id's have the hash mark(#). Which is it? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now