SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    derrrp
    Join Date
    Aug 2006
    Location
    earth
    Posts
    923
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Space between DIVs in IE

    Take a look here.

    In IE, there's a small white space between the top div (holding the rounded corners img) and the second div.

    In FF, it works just fine. I've tried just about every margin/padding combination I can think of. Any ideas? Pointers?

    Thanks in advance.
    No, I REALLY dislike having to use Joomla.

  2. #2
    SitePoint Evangelist
    Join Date
    Jul 2006
    Posts
    493
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try font-size:0; in #mainhead

  3. #3
    derrrp
    Join Date
    Aug 2006
    Location
    earth
    Posts
    923
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that's amazing.

    would you mind explaining the "how" behind your logic?
    No, I REALLY dislike having to use Joomla.

  4. #4
    SitePoint Evangelist
    Join Date
    Jul 2006
    Posts
    493
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    IE reserves space for the text even in empty divs.
    You can set font-size or have a comment in the div to remove the space.

  5. #5
    derrrp
    Join Date
    Aug 2006
    Location
    earth
    Posts
    923
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    also, there's a funny shift to the right going on with my #headcontent div and my #footer div.

    Either that, or everything else is being shifted left, which may be the case as my BG image drop shadows are being cutoff. (you can see the hard edge between the greys.

    The funny thing is, when I view it locally off my disk, everything shows up perfectly in FF and IE. But when I set it on a server, these alignment problems show up in both browsers.

    E: Nevermind this problem. It doesn't really exist. I've just been staring at a computer for too damn long.
    Last edited by crowden; Sep 14, 2006 at 12:02.
    No, I REALLY dislike having to use Joomla.

  6. #6
    derrrp
    Join Date
    Aug 2006
    Location
    earth
    Posts
    923
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan_A
    IE reserves space for the text even in empty divs.
    You can set font-size or have a comment in the div to remove the space.
    Thanks!
    No, I REALLY dislike having to use Joomla.


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
  •