Submit Your Article Forum Rules

Results 1 to 7 of 7

Thread: Mysterious IE-only pixel jog with three floating divs

  1. #1
    Senior Member ADAM Web Design's Avatar
    Join Date
    Dec 2003
    Posts
    2,172

    Mysterious IE-only pixel jog with three floating divs

    Hi everyone,

    I'm working on a site concept and layout based off of the pixy.cz 3-column layout here (there is a reason for the mod, which I will reveal soon). However, I keep noticing that, in IE, I get a mysterious "pixel jog" whereas the content of the middle div wraps itself around the left floating div.

    To see what I'm talking about, click here:

    http://www.adamwebdesign.ca/samples/...ut_sample.html

    The "content area" div is indented slightly on the first three lines (where the AAA lines are in the left div) and isn't anywhere else.

    In Firefox, it looks okay.

    Does anyone have any thoughts/suggestions as to what I can do to get the indent to disappear?

    Thanks.

  2. #2
    Junior Member
    Join Date
    Feb 2005
    Posts
    12
    I get this little bug all the time, as far as I know there is 2 main ways to fix it;

    • First is to set your left float to "display:inline", though this can cause some more problems if you have heights set on elements.
    • The second is to set a height on the relative floating element (i.e. the centre column) - the best way to do this is by setting the height to 1% as this will not effect Firefox at all.
    Both these solutions have worked for me in the past when using floats.

    Hope this helps.

  3. #3
    Senior Member ADAM Web Design's Avatar
    Join Date
    Dec 2003
    Posts
    2,172
    Yeah, it did. Thanks.

    But now I'm running into another problem. It seems that the left float and the right float heights don't transfer themselves to the heights of the containing divs (the ones with the backgrounds).

    Visit the page again to see what I'm talking about.

  4. #4
    Senior Member Tim's Avatar
    Join Date
    Jul 2004
    Posts
    422
    Hi Adam.

    I'm not 100% sure I understand the problem but if you apply the 1% height to the left and right sidebgdivs instead, both columns appear equal in IE, regardless of no content in the right one. No effect in FF. However, as you have it, any content in 'contentarea' will extend the side columns to match it's height in both browsers.

    Am I missing the point?
    Pleasure in the job puts perfection in the work. Aristotle (384-322 BC)

  5. #5
    Senior Member ADAM Web Design's Avatar
    Join Date
    Dec 2003
    Posts
    2,172
    Unfortunately, yes.

    When the content area is smaller than that of either floating column, the blue backgrounds don't extend to match the height of the highest floating column (in this case, the left one).

    This has nothing to do with the height: 1% property either. I took it out and no luck.

    The thing is that it does behave exactly the same in FF.

  6. #6
    Senior Member Tim's Avatar
    Join Date
    Jul 2004
    Posts
    422
    I've sent you a PM.
    Pleasure in the job puts perfection in the work. Aristotle (384-322 BC)

  7. #7
    Senior Member ADAM Web Design's Avatar
    Join Date
    Dec 2003
    Posts
    2,172
    Thanks, dude, but there's a reason I want to use this particular layout. It will make sense eventually...just not right now.

Similar Threads

  1. mysterious space between divs in IE
    By steve-parrott in forum Graphics & Design Discussion Forum
    Replies: 11
    Last Post: 06-04-2009, 07:01 AM
  2. Mysterious Tibetan Jewelry
    By charmspeed in forum Link Exchange
    Replies: 0
    Last Post: 04-30-2006, 12:58 AM
  3. Mysterious Traffic
    By chandrika in forum Search Engine Optimization Forum
    Replies: 1
    Last Post: 11-11-2005, 03:13 PM
  4. Mysterious inktomi visit
    By OtitO in forum Yahoo! Discussion Forum
    Replies: 7
    Last Post: 09-01-2004, 08:45 AM
  5. Mysterious Error in Safari only
    By aeron in forum Web Programming Discussion Forum
    Replies: 9
    Last Post: 06-11-2004, 04:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •