Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jul 2005
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to isolate an area of html from the effect of existing CSS?

    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.
    Last edited by dealmaker; 05-14-2008 at 12:52 AM.

  • #2
    Regular Coder
    Join Date
    Apr 2008
    Location
    Manila, Philippines
    Posts
    263
    Thanks
    3
    Thanked 12 Times in 12 Posts
    make a new css doc

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

    pretty simple..

  • #3
    Regular Coder
    Join Date
    Jul 2005
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    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.

    Quote Originally Posted by jhaycutexp View Post
    make a new css doc

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

    pretty simple..

  • #4
    New Coder
    Join Date
    May 2008
    Posts
    56
    Thanks
    9
    Thanked 1 Time in 1 Post
    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
    Dedicate some time to Educate your mind

  • #5
    Regular Coder
    Join Date
    Apr 2008
    Location
    Manila, Philippines
    Posts
    263
    Thanks
    3
    Thanked 12 Times in 12 Posts
    Quote Originally Posted by dealmaker View Post
    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..


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •