
Originally Posted by
carlosbcg
It doesn't seem like there is any way around this problem other than going through the hassle of dealing with one CSS selector and it's properties one at a time and explicitly setting new CSS settings for it in the new CSS to override existing stuff.
It's easier to do this looking forwards than backwards, but to avoid this problem, I often give an element like a form a class, and add that class to all styles for that form. E.g.
Code:
<form class="general">
Code:
.general input { ... }
.general textarea { ... }
That way, and form that is to share those styles just gets a class of .general. Any form that will have different styles starts with a blank slate ... no overrides needed.
Bookmarks