By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,624 Members | 2,229 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,624 IT Pros & Developers. It's quick & easy.

AVOIDING CSS interfernce...

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
"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.