Internet Explorer generates extra br

Posted by ahsteele on Stack Overflow See other posts from Stack Overflow or by ahsteele
Published on 2010-06-11T21:01:27Z Indexed on 2010/06/11 21:12 UTC
Read the original article Hit count: 334

I have an issue where Internet Explorer is generating an additional br element that is not in my source. The additional br effects the page's layout and is visible when using the developer tool. I've tried removing all hard returns between the surrounding elements but the additional br persists. Firefox and Chrome do not have this issue. Ideas on what I can do to fix the issue?

Instead of

First line.
Second line.

I get

First line

Second line.

Code Example

    <asp:ImageButton ID="RemoveItem" AlternateText="Remove Item" 
        ImageUrl="~/img/buttons/remove.png" runat="server" CssClass="remove"
        CommandName="Remove" OnCommand="RemoveCartItem_Command" />
    <br runat="server" id="TotalBreak" />

© Stack Overflow or respective owner

Related posts about html

Related posts about internet-explorer