Forum Moderators: not2easy

Message Too Old, No Replies

DIV - How to disable parent style?

         

rafiso

12:10 pm on Feb 14, 2005 (gmt 0)



Hello,

I have a css formated webpage.

This page is generated from a CMS. Sometimes, a special link can be inserted by the users. When it appends, this link open a new centered div with a form. The problem is that this div takes the style from the parent element, which can be different.

I would like to create div without parent style... or to force it to get the BODY style, but not the style from the parent <td> class...

How can I do that?

Thx for reading this post and have a nice day!

raf

DrDoc

8:37 pm on Feb 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld! [WebmasterWorld.com] :)

Your only option with regards to "resetting" styles for child elements is to simply override them with different settings. If you do not know what the default settings would be, or have no control over them, your only solution may be to render that content inside an iframe, which will remain unaffected by the parent styles.