The important property of CSS is used for giving the priority to any property of a CSS. The !important property means 'That is important' means deny all the properties of that attribute and apply this important rule and value on that particular element.
The !important keyword must be applied at the end of the line otherwise it will not work if any below line code execute after that
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
The important property of CSS is used for giving the priority to any property of a CSS. The !important property means 'That is important' means deny all the properties of that attribute and apply this important rule and value on that particular element.
The !important keyword must be applied at the end of the line otherwise it will not work if any below line code execute after that
Let's understand it with the help of an example :
Here, you can see that the Margin Bottom property overwrites the Margin property due to the !impotant property.
Hope you'll get understand if you have read it carefully.