30 users online (0 members and 30 guests)  


  Results 1 to 5 of 5

Related

  1. Centering Vertically    Forum: HTML Forum
    Replies: 5
  2. I have a centering problem.....    Forum: HTML Forum
    Replies: 4
  3. Centering text    Forum: HTML Forum
    Replies: 2
  4. Centering Content!    Forum: HTML Forum
    Replies: 1
  5. Another Centering Problem    Forum: HTML Forum
    Replies: 1
  1. #1
    LocoDave's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2002
    Location
    Australia
    Posts
    64

    centering DIV in IE

    Hi Guys,

    Getting back to CSS its been a while. I started playing around and when I view a centered DIV in IE it appears off by one pixel? In firefox and Netscape it is fine, any ideas why?

    You will see a white edge on the right hand side on the top header when you view it in IE.

    http://www.creativelevelstudios.com/html2/index3.html


  2. #2
    Digital R S's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2006
    Location
    TN
    Posts
    16

    Re: centering DIV in IE

    well if I am understanding you, the size peramaters (damn i cant spell) are what the problem is. I tried to go to the link and got nothing.

  3. #3
    LocoDave's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2002
    Location
    Australia
    Posts
    64

    Re: centering DIV in IE

    It's all good I fixed it thanks

  4. #4
    DeadMeatGF's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    381

    Re: centering DIV in IE

    It would be really cool if you could share the fix ...

  5. #5
    sarmaad's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2007
    Posts
    1

    Re: centering DIV in IE

    what i do is create two divs and text center the first one, and left aligh the second like this.
    Code:
    <div style="text-align:center">
    <div style="text-align:left">
    something in the div
    </div>
    </div>
    this works for me.



Tags for this Thread