I want to make high priority of external CSS class than internal class and inline CSS class. Is It possible? How can I do that?
Asked
Active
Viewed 6,264 times
2 Answers
9
Its bad practice but can be done.
If you put !important after your selector it should overide inline styles.
Idealy though you would remove the inline markup.
Example
.myclass{
color : red !important;
}

Dominic Green
- 10,142
- 4
- 30
- 34
-
I am not really in favour of `!important` and encourage anyone to use it – Kheema Pandey May 27 '14 at 11:22
2
yes it is possible you can use !important
in your external css classes to give them high priority...rather inline & embed css

Shailender Arora
- 7,674
- 2
- 31
- 35