Link to home
Start Free TrialLog in
Avatar of Koderz
Koderz

asked on

CSS Overriding and Scope

<div id="foo">
..... more markup .....
</div>

Assume all CSS rules for the content inside have an id selector of "foo" as the prefix

Examples:

#foo p{...}
#foo #myspan{....}

Is there any way for these rules to modify/affect CSS outside of the div? Reason being I plan on pre-fixing in this fashion to all user supplied CSS rules so my main page cannot be modified (I don't want to apply !important on all of my rules). Thanks
ASKER CERTIFIED SOLUTION
Avatar of ncoo
ncoo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial