* TechnoSparks * toshudhiman As I said before, the !important takes the values to the highest level of all in the flow from the start of the file into the last line the file has. What I meant by file is the CSS file.

for example

.link1
{
  color: black !important;
}

.link2
{
  color: green !important;
}

Copy code


The link will be in green. As this code implies:
<a href="lol" class="link1 link2">A LINK</a>
Copy code


When a link with both classes are made, the link will follow the link2 selector in the CSS. This is due to the flow of the file.

If you can't understand, simply said, a class/id with !important in its CSS, the styles will be elevated at a high level, overriding other defined styles. :)
2014-05-12 06:10 · (0)

Online: Guests: 1