On 17/10/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > now I want to set up a sub class
I've rather extensively snipping your query as I'm now clear what you are actually trying to say. In an attempt to answer you I'm going to list a few possible options that might be applicable depending on what you mean. In OOP terminology (which is not something that should be appled to CSS, a class in HTML (and thus a class selector in CSS) refer to the more general meaning of the term "class" - "a collection of things sharing a common attribute") - a subclass is a class that inherits many features from another class. This can't be done in CSS as CSS doesn't have classes. It has selectors, including class selectors, that match elements in markup documents. http://dorward.me.uk/www/css/inheritance/ describes a couple of techniques which allow you to achieve similar results in CSS to what subclassing provides in OOP. >.side_menu_aboutus myownclass This is a class selector, a descendent selector, and a type selector that means "Match an element <myownclass> that is a descendent of any element with class="side_menu_aboutus". So it would match: <div class="side_menu_aboutus"> Foo <myownclass>this text here</myownclass> Bar </div> ... but since there is no <myownclass> element in HTML, you could only use this in a different XML or SGML language that included such an element. If you had a . in front of "myownclass" then it would match an element with class="myownclass" that descends from etc etc. > <span class="side_menu_aboutus">Who are we</span><br> > <span class="side_menu_aboutus mycustom class">Who are we</span><br> This looks like you are trying to use multiple classes on a single element, which is described in the document I referenced earlier. It also looks like rather poor markup and that an unordered list would be more suitable then spans and hard line breaks. -- David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk> ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
