CSS Parent Child Same Class Selector?

    Date: 03/08/07 (Web Development)    Keywords: css

    Is there a way in pure CSS2 (supported by IE), to give an attribute to any element that has the same class name as its parent without specifying each name? I know I could just do div.tech span.tech, div.other span other for the attribute name in the CSS file, but was curious if there was a shortcut to this.
    i.e.


    special text herethis text will only be highlighted when contained in a div with a class of other


    I need a list of words randomly arranged and when they are on a certain page only the words applicable to that section stand out.

    Source: http://community.livejournal.com/webdev/391861.html

« Dynamic number of form fields || CuteFTP 4.0 problem »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home