Home » !Important Property in CSS- When to use?

!Important Property in CSS- When to use?

  • by
!important property in CSS

As a developer, I have come across the necessity of using !important property in CSS. !important has been very useful when we need to make important styling changes to a theme to fit more with the visual identity of clients.It can seem like a great idea to apply this property on most of your CSS property to implement without an understanding of the dangers that come with it. I have had troubles changing some plugin CSS styles due to the use of !important in their CSS files. ! important, when used in excess can lead to a messy and hard to maintain code for your website. This can be a huge problem especially when we have other developers working on the project. So when should we use !important in the right way?

Stay tuned for part 2 in our blog section

References:

https://css-tricks.com/when-using-important-is-the-right-choice/

Leave a Reply

Your email address will not be published. Required fields are marked *