×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Learn How to Force a Style
 

Submitted by: Octavia Anghel(octaviaanghel@gmail.com)

Thursday Jul 5th 2018 by Octavia Anghel

Language: Web, Expertise: Intermediate - See how to force a style and prevent something else from overwriting it.

If a style is marked with !important, it will be used with priority even if there's a overwriting rule below it.

.page { background-color:green !important; background-color:blue;}

In the example above, background-color:green will be adopted because it's marked with !important, even if there's a background-color:blue; below it. !important is used in situation where you want to force a style and prevent something else from overwriting it.

Home
Mobile Site | Full Site
Copyright 2018 © QuinStreet Inc. All Rights Reserved