Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Centered div in everything but IE

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #43973
    slb535
    Member

    Can anyone tell me why the page isn’t centered (left to right) in IE?

    http://www.starbuckslandscaping.com/test/gallery_plantings.html

    When I started messing with the page (not the css), the layout of the gallery got screwed up as seen here:
    http://www.starbuckslandscaping.com/test/gallery_hardscapes.html

    which makes me think there’s an open div somewhere, but I have gone over this so many times and if it’s there I just don’t see it.

    I would appreciate any help/guidance.

    #131080
    Senff
    Participant

    Your page (the first link) doesn’t have a doctype declaration at the top. Because of that, IE displays it in quirks mode.

    #131082
    slb535
    Member

    unbelievably, you’re right. Which then throws the gallery into disarray in IE. Sigh. But I assume I can fix that with some quality time in my css.

    Thanks very much.

    #131084
    slb535
    Member

    Don’t suppose you can see a similarly stupid reason that those thumbnails are over on the right — again, only in IE?

    http://www.starbuckslandscaping.com/test/gallery_plantings.html

    #131126
    wolfcry911
    Participant

    add clear: left; to #thumbs

    #131127
    slb535
    Member

    genius! Is that something I should have for everything, not just IE? Am I just lucky it’s working in the other browsers? Someone else wrote the css for the gallery and I’ve just been modifying it.

    Thank you so much for your help. I never would have figured that out.

    #131129
    Senff
    Participant

    > Am I just lucky it’s working in the other browsers?

    IE is less forgiving, basically. “Bad” code will show bad in IE, while other browsers will do some interpretation of it (and attempt to correct code errors and such).

    #131130
    slb535
    Member

    Well thanks to both of you. You’ve saved me many hours and many headaches.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘CSS’ is closed to new topics and replies.