Apply! Important for a font family with multiple options.

How can i apply! important for the following syle:

font-family: "Trebuchet MS" , Verdana, Helvetica, Sans-Serif;  

I tried this but it does not work:

font-family: "Trebuchet MS" , Verdana, Helvetica, Sans-Serif !important;
+5
source share
2 answers

The code is ok. It depends on what items you provide. This is better if you use special selectors such as classes:

http://jsfiddle.net/4d3K4/

+3
source

Select children in the parent container with a wildcard (*):

div * {font-family: "Trebuchet MS" , Verdana, Helvetica, Sans-Serif !important; }

http://jsfiddle.net/4d3K4/50/

+9
source

All Articles