#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    0

    Container works in Firefox, broken in IE


    I am having a problem displaying text under images in IE, it looks fine on FF though.
    In IE the text runs down the side of the images and looks really bad. Can someone tell me why it does not display properly in IE?

    Here is an example page
    product_info.php?products_id=209
    And this is the stylesheet
    stylesheet.css

    Any help would be much appreciated.

    Thanks
    Peter
    PS. Looks like I am not allowed to post links yet, I can send them to you if you like?
  2. #2
  3. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    Location
    USA (verifiably)
    Posts
    20,124
    Rep Power
    4309
    Welcome to DevShed Forums, Peter.

    As you found out new users are restricted from posting URLs until they have made 5 posts. You may need to get around this by leaving out the "http://" and putting a space before each ".". Yes this rule is annoying, but the administrators say its necessary for limiting spam.
    Spreading knowledge, one newbie at a time.

    Learn CSS. | PHP includes | HTML Validator | CSS validator

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    0
    Yeah, I never thought.

    Anyway, I fixed the problem, it was quite simple actually.

    For those who run up against the same problem ( I was using Oscommerce) with CSS layouts not working in IE, here is hte fix
    Change your Doctype to:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  6. #4
  7. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    Location
    USA (verifiably)
    Posts
    20,124
    Rep Power
    4309
    Ah, yes. Using a doctype that puts browsers in "standards mode" is important.

    Thanks for posting your solution. I'm glad you're aware that this thread might come up in a search.
    Spreading knowledge, one newbie at a time.

    Learn CSS. | PHP includes | HTML Validator | CSS validator

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).

IMN logo majestic logo threadwatch logo seochat tools logo