Previous Message
Next Message

Nested Style Sheets / Precedence and Blocking

Sent by Terrence Wood on 19 September 2004 02:02


Remove all inline styles from your content and add them to an external 
CSS file.

If your content is this:
<p style="color: red; background: yellow">content</p>

remove the styling and add a class:
<p class="alert">content</p>

and in your css file:
..alert {
	color: red;
	background: yellow;
}

Link to your CSS file in the head of your parent document using either a 
  link or style element. All styling that occurs on the page will come 
form your CSS file.


../tdw



Barry Owen wrote:

> I'm wondering if there is any way to suppress the loading of a style sheet
> by a nested page.  By way of background, I have an application which can
> proxy internal pages into it, and display them essentially within a table on
> the page.  The problems arise when the page being proxied loads a style
> sheet that defines some basic styles (p, h1, etc) that I have already
> defined on the enclosing or "parent" page.  I know I could use something
> like an IFRAME to do this, but that defeats some of what I am trying to do.
> All I really want to do is block the style redefinitions so the proxied
> content looks like it fits on the page.  Any Ideas?
>  
> Thanks
> Barry


______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Possibly related: