Make High Priority of External Css Class Than Internal and Inline Css [Duplicate]

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?

2

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;
}
1

yes it is possible you can use !important in your external css classes to give them high priority...rather inline & embed css

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest