Using jQuery to disable CSS inheritance
Posted
by Buzzedword
on Stack Overflow
See other posts from Stack Overflow
or by Buzzedword
Published on 2010-05-19T15:34:52Z
Indexed on
2010/05/19
15:40 UTC
Read the original article
Hit count: 262
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.org, they will have their own CSS that my CSS overrides. I would like to place the embed code into its own container that has CSS inheritance disabled.
This is not my own CSS structure, so I can't rename IDs Classes or inline anything to make it work, the holy grail of inheritance blocking is my last resort.
© Stack Overflow or respective owner