Re: IE doesn't display html with comments properly!

Discussion in 'HTML' started by Keeper, Apr 27, 2004.

  1. Keeper

    Keeper Guest

    use a style sheet to remove the horizontal scrolling..




    "Nik Coughin" <nrkn!no-spam!@woosh.co.nz> wrote in message
    news:Daqac.273$d%...
    > Nik Coughin wrote:
    > > Nik Coughin wrote:
    > >> In my earlier post, "List item misplaced in IE" I said:
    > >>
    > >>> IE applies extra space to the bottom of the page, and causes
    > >>> vertical scrollbars to appear. Same as with the original post,
    > >>> except that the help image now appears in the right place.
    > >>
    > >>> WTF? How do I get rid of that extra space?
    > >>
    > >>> Once again, only occurs in IE.
    > >>
    > >> Goddamn IE.
    > >>
    > >> It was the comments. I removed all of the lines with
    > >> this: <!-- this explains what this piece of html does -->
    > >>
    > >> ...and the space disappears. WTF?
    > >>
    > >> This is the *only* thing that I changed.
    > >>

    >
    > Put all of the comments back in, one by one. It's the comment above the
    > rightmost div on the page that was causing the problem. So in my html:
    >
    > <div>
    > <!-- comment -->
    > <div id="navigation">
    > ...
    > </div>
    >
    > <!-- comment -->
    > <div id="information">
    > ...
    > </div>
    >
    > <!-- comment -->
    > <div id="action">
    > ...
    > </div>
    >
    > <!-- comment -->
    > <div id="quickNavigation">
    > ...
    > </div>
    >
    > </div>
    >
    > ...makes extra padding after the last closing div. If I remove the last
    > comment, or place it inside the .quickNavigation div instead of above it,
    > then the padding disappears.
    >
    > However, there must be more to it than that, because I haven't been able

    to
    > replicate the problem in a new html page.
    >
    >
    >
    >



    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.669 / Virus Database: 431 - Release Date: 4/26/04
     
    Keeper, Apr 27, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SWu
    Replies:
    1
    Views:
    342
  2. Henry S. Thompson

    SPAN tag doesn't display properly in JTextPane

    Henry S. Thompson, May 1, 2004, in forum: Java
    Replies:
    0
    Views:
    531
    Henry S. Thompson
    May 1, 2004
  3. Replies:
    4
    Views:
    600
    Oliver Wong
    Apr 28, 2006
  4. Replies:
    0
    Views:
    1,167
  5. Marek Kurowski
    Replies:
    1
    Views:
    1,017
    Mark A. Odell
    Aug 18, 2004
Loading...

Share This Page