If you haven't already, have you considered adding !important
to the end of your current CSS declarations? This will override any previous styles for the specified selector.
For example:
<!-- html -->
<html><body id="foo"></body></html>
<!-- css -->
body { background: #0000FF; }
body#foo { background: #FF0000; }
Typically, using an id as a selector overrides any "global" styles applied to an element. However, consider using !important
in your CSS like so:
body { background: #0000FF !important; }
body#foo { background: #FF0000; }
With this change, the background color for #foo
would be set to #0000FF
instead of #FF0000
.
You can see the difference by checking out these demos on jsFiddle.net:
http://jsfiddle.net/9sJqx/ with regular priority
http://jsfiddle.net/WfNUX/ where !important
is applied