SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot matches's Avatar
    Join Date
    Aug 2006
    Posts
    196
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    div centered in FF not in IE

    I have seen lots of posts for the opposite problem (centered in IE not FF). For some reason though my container div is centered in FF and aligned to the left in IE. Can someone take a look at my CSS and let me know why this is happening? Links below.

    www.ceilingdesigners.com
    www.ceilingdesigners.com/styles.css

    Two more things if you feel like it

    I am going to try and figure this out too but if you take a look at the portfolio page www.ceilingdesigners.com/portfolio.htm
    in the middle of the page in IE there are two images that are on top of each other...looks fine in FF. I haven't tried to figure it out yet, but if you know quick answer that will do.

    Also feel free to critique my code in general. It is much appreciated.

    Take care, many thanks

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello

    Try changing:
    Code:
    margin: auto;
    on the #container div to
    Code:
    margin: 0 auto;
    that should do it.

  3. #3
    SitePoint Zealot matches's Avatar
    Join Date
    Aug 2006
    Posts
    196
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the quick reply! I tried that with no luck...i tried that every where just for good measure. Any other suggestions would be greatly appreciated

  4. #4
    SitePoint Zealot matches's Avatar
    Join Date
    Aug 2006
    Posts
    196
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Johnny,

    Thanks again, that actually did work. I just needed to include a text-align: center; to body. Go figure, makes perfect sense

    One other problem now is all of the text in divs is also centered. So giving each div a text-align: left; is not working as of yet. ARRGHH!!!

    Many thanks


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
  •