One of the problems is that we don't necessarily know what style rules exist in the site around the message. We also don't have direct control over the message itself.
Thanks for you help, Scott -----Original Message----- From: Web Developer [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 1:51 PM To: Scott Andrews Subject: Re: [css-d] Disable CSS for a page fragment why not try just to override the rules on that page by giving the email message an id and a more specific rule that will overrride the other rules body#blahPage #emailMessage p{border:1px solid red; margin:0px ...etc.} or putting internal style tags on the email message html itself, which will override css rules. <div id="emailMessage"><h2 style="border:1px solid red; margin:0px;">bleh<h2></div> 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/ > ______________________________________________________________________ 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/