Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

'important' declaration ..
(1 viewing) (1) Guest
All your queries regarding CSS will be solved in this forum
  • Page:
  • 1
TOPIC:

'important' declaration ..

'important' declaration .. 1 year, 8 months ago #242

  • palak
  • OFFLINE
  • Senior Boarder
  • Posts: 55
  • Karma: 0
hi,

What is 'important' declaration in CSS?

Re:'important' declaration .. 1 year, 8 months ago #259

  • isaac
  • OFFLINE
  • Senior Boarder
  • Posts: 64
  • Karma: 0
Important declaration is a declaration with increased weight. Declaration with increased weight will override declarations with normal weight. If both reader's and author's style sheet contain statements with important declarations the author's declaration will override the reader's.
In the example below the background property has increased weight while the color property has normal.


BODY {
background: green ! important;
color: white;
}
  • Page:
  • 1
Time to create page: 1.25 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download