Quick Tip 7 – CSS !Important

This isn’t something to use on a regular basis but a very useful tool when you need it.
Quick Tip Gary
Another simple tip today, the !important rule in CSS. This little snippet will help you override any rule that is already assigned. For Example:


body { background-color:#000 !important; background-color:#CCC;}

Now the background colour of Black will be assigned over the Grey even though Grey is assigned over Black.

Related posts:

  1. Quick Tip 5 – Compact CSS
  2. Quick Tip 6 – CSS Shorthand
  3. Quick Tip 9 – CSS min height
  4. Quick Tip 2 – CSS Text Shadow
  5. Quick Tip 10 – CSS Vertical Alignment

Tags: ,

Leave a Reply

Gary Morgan

Gary Morgan
Sales Director

Martyn Palmer

Martyn Palmer
Lead Designer

Oliver Blake

Oliver Blake
Web Designer

Tom Bradshaw

Adam Church
Web/Print Designer

Website Design

Website Design

For the complete standard compliant website.

Online Shops

Online Shops

Sell Products Online and manage your own stock.

Seo Marketing

SEO Marketing

Rank with search engine optimisation.

Print Design

Print Design

Logo design, stationary design & folder design.