I have a page where I use 2 css styles:
<link type="text/css" href="base_form.css" rel="stylesheet" />
<link type="text/css" href="extended_form.css" rel="stylesheet" />
And extended_form.css must come after the base.
Is there any way to force extended_form.css to override base_form.css?
Have you tried appending
!importantbehind your current CSS-statements? It acts as an override and overrides the given style for the specified selector.Example:
Usually assigning an id and using it as a selector overrides the “global” style applied to an element, however, consider the following css instead:
The above statement would render
#foowith the background set to#0000FFinstead of#FF0000.Check it out on jsFiddle.net:
http://jsfiddle.net/9sJqx/ “regular” prority
http://jsfiddle.net/WfNUX/
!importantapplied