Skip to content Skip to sidebar Skip to footer

Using JQuery To Disable CSS Inheritance

Is there a way to use jQuery (or generic javascript) to disable CSS inheritance on a block level? For example, if I am pulling in an external resource via javascript, say pastie.or

Solution 1:

Have you thought about using an <iframe> to display the content? Then you have a blank canvas with no CSS set, so to speak.


Solution 2:

That or make sure that when you are pulling in the content you pull in the css also , are you using $('#example').load('pastie.org'); ? can you specify pastie.org's css?


Post a Comment for "Using JQuery To Disable CSS Inheritance"