473,405 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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
2 1329
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Dan | last post by:
Quick question about passing variables to subs to reduce the need for publicly declared variables in VB6. If I have an event sub (MouseDown) that runs a few lines of code, how can I use a variable...
10
by: Nick Craig-Wood | last post by:
I'm trying to avoid using shell metacharacters in os.popen in a portable fashion. os.popen() only seems to take a string as the command which would need tricky quoting. os.popen2() can take a...
6
by: Peter Ammon | last post by:
Let's say I need to swap two int values frequently. I would write a macro: #define swap(int a, int b) \ do { \ int temp = (a); \ (a) = (b); \ (b) = temp; \ } while (0)
2
by: NH | last post by:
Hi, I have two dropdown lists in a web form. When you choose an entry in the first list the code retrieves records from the database and displays them in the second dropdownlist. Is there a...
4
by: Frank-René Schäfer | last post by:
-- A class needs to have N members according to N types mentioned in a typelist (possibly with one type occuring more than once). -- The classes should be generated **avoiding** multiple...
2
by: manuelg | last post by:
Here is a code fragment, where I am trying to copy a file, avoiding overwrites and race conditions. The filename gets a '02','03','04' etc appended to the end if a file with that name already...
11
by: Bob Nelson | last post by:
It's been a long time since I've posed a query here on c.l.c. My work environment evolved to primarily C++ and Perl with very little C, so I've forgotten quite a lot over time. This revisits the...
27
by: galt_57 | last post by:
I need to do just a few multiplies of long integers and have a divide by ten. Can I avoid using floats? Can I use two longs as a 64 bit value somehow? Thanks.
23
by: steve.j.donovan | last post by:
Hi guys, We have the following macro: #define NEXT(type,p) (*((type*)(p))++) It provides a way to poke variable sized data into an array of pcode for a simple VM. e.g,
5
by: robert.waters | last post by:
Hello, I have been experiencing crashes and code corruption in my project (vbe6.dll; a decompile fixes the corruption); for the life of me I cannot figure out why, and I can't pin down the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.