Some PHP pages not displaying right in IE

Discussion in 'PHP' started by Business Attorney, Sep 9, 2010.

  1. #1
    I have a little website I bought a while back StLouisTravelGuide dot info

    The pages all display correctly in Firefox and many of the pages display correctly in IE, but certain pages are way off in IE. For example: St. Louis Travel Tips


    I have spent two hours fixing minor problems in the code but nothing changed the basic problem. I am out of ideas. Any thoughts?

    Thanks.
     
    Business Attorney, Sep 9, 2010 IP
  2. HungryMinds

    HungryMinds Active Member

    Messages:
    216
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    63
    #2
    Check Your CSS...
    I Don't Think It's PHP Issue...
    There Is Something Wrong CSS Compatibility With Different Browsers...
     
    HungryMinds, Sep 9, 2010 IP
  3. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #3
    Just at a glance, you could assign a width to .contentwrapper or failing that, try assigning a css style to the p tags, you have 2 I think so assign different widths etc..

    Like @HungryMinds says, its a css thing and not related to php, the active forum members in the css section could probable provide you with a better solution.
     
    MyVodaFone, Sep 10, 2010 IP
  4. Business Attorney

    Business Attorney Active Member

    Messages:
    621
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    70
    #4
    Thank you. I'll try that and if it doesn't work I'll post this is the CSS forum instead.
     
    Business Attorney, Sep 10, 2010 IP
  5. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #5
    PHP is server side so has no effect client side, CSS is client side and the support varies per browser, today theirs many browsers - and developers often find it hard to make a site cross-browser especially when it comes to IE.

    Theirfore I suggest your run your site through a validator get it validated....then consider using a reset (looking into Yahoo YUI or Eric) which should ensure the (default) settings for markup is the same for all browsers.

    Heres a tool which makes it easy for testing your site in IE (regardless of version) -> http://www.my-debugbar.com/wiki/IETester/HomePage

    And the popular http://browsershots.org/ which takes screenshots on how your site would look in specific/various browsers.
     
    danx10, Sep 10, 2010 IP