Code Snippet

Home » Code Snippets » CSS » Style Override Technique

Style Override Technique

p {
   font-size: 24px !important;
}

The !important rule at the end of a value will override any other style declarations of that attribute, including inline styles.

Reference URL

Subscribe to The Thread

  1. Wow… I learn new thing here… TQ for the snippet..

  2. Chris

    It’s evil!!!
    Code clean and you dont have to do this.

Speak, my friend

At this moment, you have an awesome opportunity* to be the person your mother always wanted you to be: kind, helpful, and smart. Do that, and we'll give you a big ol' gold star for the day (literally).

Posting tips:
  • You can use basic HTML
  • When posting code, please turn all
    < characters into &lt;
  • If the code is multi-line, use
    <pre><code></code></pre>
Thank you,
~ The Management ~