IFrame? Presumably you would only need to undo those styles that "are affecting the display of the embedded message."
Maybe those are not that many? Is there more than color, font, background, padding, margin, border, ul, ol, dd,... ? Just about 20 lines or so. It doesn't look like a "poor hack" to me. (turnOffCss might as well be a class not an id, no?) Stephan On 11/14/06, Scott Andrews <[EMAIL PROTECTED]> wrote: > We have a site that embeds an HTML email message inside a page that uses > CSS for layout. Currently, the styles from the containing site are > affecting the display of the embedded message. Is there a way to turn > off CSS and the cascade for content inside a block level element? > > The only thing I can think of is to create a rule that overrides every > single CSS property with a default value. Like this: > > #turnOffCss * { > border-width: 0 !important; > border-color: #000 !important; > border-style: solid !important; > ... > } > > Clearly this is poor hack and will not scale well into the future. Any > other ideas would be most appreciated. > > Sincerely, > Scott Andrews > > > Web Services Programmer > University Web Services > Information & Technology Services > Rochester Institute of Technology > > [EMAIL PROTECTED] > > "What are you doing to harness the intelligence- of your users?" > -Tim O'Reilly > > ______________________________________________________________________ > css-discuss [EMAIL PROTECTED] > http://www.css-discuss.org/mailman/listinfo/css-d > IE7 information -- http://css-discuss.incutio.com/?page=IE7 > List wiki/FAQ -- http://css-discuss.incutio.com/ > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ > -- Stephan Wehner > http://stephan.sugarmotor.org > http://stephansmap.org > http://www.trafficlife.com > http://www.buckmaster.ca ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/