At some point during development, I indented text to -999 without realizing it. I have no idea where I could have done this so I started to mess with the CSS of the website. I found what I was looking for but as you can see in the screenshot the first CSS is prioritized over the second. I was curious as to whether or not you can change the priority or order of that list.
Asked
Active
Viewed 287 times
-3
-
Add an inline-style CSS to the button. It has more priority than any other kind of CSS – keidakida Aug 11 '20 at 07:32
-
2Adding `!important` to the style will make the style the most important but should be used sparingly – seunadex Aug 11 '20 at 07:38
-
`text-indent: 0 !important` will prioritize it above all non !important rules – Nico Shultz Aug 11 '20 at 07:38
1 Answers
1
To change the priority of a CSS element, you have to add !important
. In this case, add text-indent: 0 !important;
The !important
property in CSS means that all subsequent rules on an element are to be ignored, and the rule denoted by !important
is to be applied. This rule overrides all previous styling rules -- the !important
property increases its priority.

Bhavesh Lohana
- 376
- 3
- 5