Is it possible, for example, to have a div that completely ignores CSS rules, no matter what classes and ids it contains?
Is it possible, for example, to have a div that completely ignores CSS rules,
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.
Nope, this is (sadly) not possible without an
iframe.You would have to reset every existing CSS rule for that
divlike so:while difficult and never 100% reliable, it might be possible to achieve a usable result this way. You could look at one of the “reset stylesheets” like Eric Meyer’s to get a list of important properties to reset; here is what claims to be a complete list of CSS 2.1 properties – excluding CSS 3 and vendor specific ones, which you would have to take into consideration as well.
Providers of 3rd party widgets often hard-code their “reset CSS” as inline CSS inside the HTML element to override any
!importantrules that threaten to override the sandbox class’s rules.