I have an html page. When I inspect its elements with Firebug, its styles are striked-through. Why is it so?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The browser applies the style sheets as it goes through them.The first is applied and then the second etc.Thus if you have something like
The second style will be applied.
If you do not want any style to be overridden by a subsequent change you can use the !important attribute.This will prevent the style to be overridden which has this attribute .
Thus the div will retain its #ffe000 color .
Hope this helps.