Go Back   Dreamweaver Club Forums > Hand Coders Forum > HTML and CSS
Register FAQ Members List Search Today's Posts Mark Forums Read

Thread Tools Display Modes
Old 09-26-2016, 09:58 AM   #1
Join Date: Sep 2016
Posts: 3
Default What is Usage of !important?

Most of the new css developers miss this !important rule. This rule is important to increase rank over other subsequent rules. Below i have explain you clearly with example.
.page { background-color:red !important; background-color: Pink;}
BWDCIndia is offline   Reply With Quote
Old 09-27-2016, 08:59 AM   #2
edbr's Avatar
Join Date: Aug 2005
Location: Bali
Posts: 11,204

it does not increase rank , the rule will be selected where there is a conflict of styles. but setting two styles as in your example is crazy and would be a pointless thing to do
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas

Last edited by edbr; 09-27-2016 at 09:02 AM..
edbr is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 08:41 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com