Content divs centered in FF, but not in IE?

Discussion in 'CSS' started by ian_batten, Jan 17, 2008.

  1. #1
    Hi guys,
    I'm just toying with Elgg at the mo, and having an issues with the main content divs. They are centered under the header image in firefox, however in IE, they are aligned slightly to the left.
    You can see here:

    http://insectstore.com/elgg/

    Any ideas what I can do to stop this? Feel free to take a look at the CSS styling.
    Thanks in advance!
     
    ian_batten, Jan 17, 2008 IP
  2. creative4w3

    creative4w3 Active Member

    Messages:
    105
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #2
    It's the forms on the left making it look awkward. You need to add a mass reset to your CSS...

    * { padding: 0; margin: 0; }

    ...so as to get rid of the default styles that IE uses. That *should* do the trick, but that's just a quick guess.
     
    creative4w3, Jan 18, 2008 IP