Results 1 to 3 of 3

Thread: Good Old Fasioned Problem Solving

  1. #1
    Join Date
    Jul 2007
    Location
    England
    Posts
    41
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Red face Good Old Fasioned Problem Solving

    Ok, this shouldn't be hard as (I don't think) it won't actually require much PHP coding. This is more of a riddle I need an answer to

    Ok, I have 2 websites, on similar subjects. I have a PHP file on one of them, which I then use PHP include to put this onto a webpage in the SAME website.

    What I want now is to use that same PHP file and using PHP include, put it's contents onto the OTHER website as well. That's all very easy, I know- I could do that. However, here's the crunch;

    The two websites are of very similar design, but with very different colour schemes. They are both controlled by their own CSS. I need the included PHP file to adhere to these separate CSSs, depending on what website it's on.

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    You can use two similar kind of CSS resources but with different style information. So that you don't have to change the class names and IDs in the including file.

  3. #3
    Join Date
    Jul 2007
    Location
    England
    Posts
    41
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    codeexploiter, could you please explain more?

Bookmarks

Posting Permissions

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