467,915 Members | 1,198 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

AVOIDING CSS interfernce...

Mel
i need to display a file within my application "AS IS" without my CSS file
interferring.

i have the following all in one page:

my stuff (must use CSS)
their stuff (NOT using CSS)

can this be done ? if so how

is it possible to disable referals of CSS only for a portion of the
displayed items ?

thanks,
Mel

Jul 20 '05 #1
  • viewed: 1243
Share:
2 Replies
On Tue, 6 Apr 2004 10:22:07 -0400, Mel <me**********@ssa.gov> wrote:
i need to display a file within my application "AS IS" without my CSS
file
interferring.

i have the following all in one page:

my stuff (must use CSS)
their stuff (NOT using CSS)

can this be done ? if so how

is it possible to disable referals of CSS only for a portion of the
displayed items ?

Mel,

Let me rephrase the question, and tell me if it's the same thing you're
asking.

You want some items in the HTML document to be unaffected by the linked or
imported CSS, and to display solely according to the UA's default
rendering?

You can certainly change the style in a classed div to match typical UA
rendering, but I don't know of any method to suddenly make certain
elements no longer observe the cascade.

If their stuff is all in one div, you can id that div, and put all other
content within other id'd divs. Say #header, #navig, #content and then
#theirstuf. In the CSS, instead of saying h2 {color: #594afe;} say #header
h2, #navig h2, #content h2 {color: #594afe;}. Perhaps in your situation
you can arrange it so it's not as involved as that.

And of course, if their stuff has no h2's you can style them in the CSS
normally.

I don't like this solution and await other responses.

Jul 20 '05 #2
"Mel" <me**********@ssa.gov> wrote:
i need to display a file within my application "AS IS" without my CSS file
interferring.

i have the following all in one page:

my stuff (must use CSS)
their stuff (NOT using CSS)

can this be done ? if so how


Embedding external content opens up a new viewport independent of the
parent.

<object data="http://host.com/" type="text/html">
Inclusion failed, you can access content directly here:
<a href="http://host.com/">link text</a>
</object>

Remember that replaced html has no intrinsic width/height, so you have
to specify it.

--
Spartanicus
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Dan | last post: by
10 posts views Thread by Nick Craig-Wood | last post: by
6 posts views Thread by Peter Ammon | last post: by
2 posts views Thread by NH | last post: by
4 posts views Thread by Frank-René Schäfer | last post: by
2 posts views Thread by manuelg | last post: by
11 posts views Thread by Bob Nelson | last post: by
27 posts views Thread by galt_57 | last post: by
5 posts views Thread by robert.waters | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.