| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
|
Weird one... pretty sure the answer is no
Is there CSS declaration to set all the contents / children of an element to no style? Here is why I ask, I am building a CMS and when the user places and HTML field on the page there is a preview button to preview the entered HTML. The contents of the HTML field gets loaded into a preview div with javascript and displayed on the page. All of my CMS styles are being applied to the users HTML... which fucks things up. I would like to be able to say: HTML Code:
but have never heard of such a thing. I could go through and name out all the HTML elements and set all the attributes to default... but it seems there would be a better way. I could also write come clever javascript that would parse each element in the preview pane and eliminate the style... but I would prefer to do it with CSS. Thanks |
|
|
|
![]() |