0

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?

aemie
  • 161
  • 2
  • 13

2 Answers2

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
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