...

View Full Version : How to isolate an area of html from the effect of existing CSS?



dealmaker
05-14-2008, 12:50 AM
Hi,
I used php to insert html page A into another html page B. Both page has their own css file. But the page A's format was all messed up inside page B. How do I make page A's html not to be affected by css in page B? I cannot use iframe if that's what you are thinking.
Thank you.

jhaycutexp
05-14-2008, 03:10 PM
make a new css doc

copy Acss and Bcss to new css doc.. and link them to both...

pretty simple..

dealmaker
05-14-2008, 05:22 PM
No, I did that. But the html in html A was all mess up afterward. is there a tag in css/html that says any code inside this tag will not be affect by other tags outside this area?
Thanks.


make a new css doc

copy Acss and Bcss to new css doc.. and link them to both...

pretty simple..

radamsiii
05-15-2008, 07:33 AM
Found this, it may be of some use to you. Sorry but I do not know enough about it to be sure.
http://www.boutell.com/newfaq/creating/include.html

jhaycutexp
05-15-2008, 08:03 AM
No, I did that. But the html in html A was all mess up afterward. is there a tag in css/html that says any code inside this tag will not be affect by other tags outside this area?
Thanks.

could you give me the link?? so that i can see??

you should link the new style sheet to both of your html...

or those messed up ones.. have the same css class or id.. and should be changed...

I think you should check you're style sheet..



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum