Override CSS

So I found myself wanting to override a few items in a sitewide CSS file, but only for a single page… Rather than make entire new CSS elements, I figured there had to be a way to override the CSS file with a <style> clause within the page itself…

Sure enough, I finally figured it out… !important

[code=css]

[/code]

!important can go at the end of any style attribute and it will override anything that isn’t “important”.

6 thoughts on “Override CSS”

Leave a Reply

Your email address will not be published.