Link to home
Start Free TrialLog in
Avatar of PagodNaUtak
PagodNaUtakFlag for Philippines

asked on

Remove white line between images

Hi! as shown in the image below, how can you remove the image below.

In visual studio designer it is the image is ok but when preview in web browser IE, it has white line between images...
<div id="main" style="border: 1px solid #000000;width:570px; height:800px;">
        <div id="banner" style="border:0px solid;">
            <div id="divTopBanner">
                <asp:Image ID="ImageTopBanner" runat="server" ImageUrl="~/images/topHeader.jpg" />
            </div>
            <div id="DivGenderBanner.png">
                <asp:Image ID="ImageGenderBanner" runat="server" ImageUrl="~/images/top_male.png" />
            </div>
            <div id="DivRightBanner" style="position:absolute;left:430px;">
                <asp:Image ID="ImageRightBanner" runat="server" 
                    ImageUrl="~/images/rightHeader.jpg" ImageAlign="Right" />
            </div>
        </div>
        <div id="contents" style="width:400px;">
         <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
        
        </asp:ContentPlaceHolder>
        </div>
</div>

Open in new window

white-space-image.png
Avatar of Shinesh Premrajan
Shinesh Premrajan
Flag of India image

<div id="banner" style="border:0px solid;">

Replace with this

<div id="banner" style="border:0px solid;margin:0px;padding:0px;">

Hope this helps..
Check for any white spaces or &nbsp; in the code.
Avatar of PagodNaUtak

ASKER

Still the same:

<div id="main" style="border: 1px solid #000000;width:570px; height:800px;">
        <div id="banner" style="border:0px solid;margin:0px;padding:0px;">
            <div id="divTopBanner">
                <asp:Image ID="ImageTopBanner" runat="server" ImageUrl="~/images/topHeader.jpg" />
            </div>
            <div id="DivGenderBanner.png">
                <asp:Image ID="ImageGenderBanner" runat="server" ImageUrl="~/images/top_male.png" />
            </div>
            <div id="DivRightBanner" style="position:absolute;left:430px;">
                <asp:Image ID="ImageRightBanner" runat="server" 
                    ImageUrl="~/images/rightHeader.jpg" ImageAlign="Right" />
            </div>
        </div>
        <div id="contents" style="width:400px;">
         <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
        
        </asp:ContentPlaceHolder>
        </div>
       
    </div>

Open in new window

The code above is my latest code, but I still have the same error:
In the code above I do not see any white space.
Any more ideas?
You could also put three images into a single <div> with <br />'s between them...
Espavo

<div id="main" style="border: 1px solid #000000;width:570px; height:800px;">
        <div id="banner" style="border:0px solid;">
            <div id="divTopBanner">
                <asp:Image ID="ImageTopBanner" runat="server" ImageUrl="~/images/topHeader.jpg" />
<br />
                <asp:Image ID="ImageGenderBanner" runat="server" ImageUrl="~/images/top_male.png" />
<br />
                <asp:Image ID="ImageRightBanner" runat="server" 
                    ImageUrl="~/images/rightHeader.jpg" ImageAlign="Right" />
            </div>
        </div>
        <div id="contents" style="width:400px;">
         <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
        
        </asp:ContentPlaceHolder>
        </div>
</div>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Shinesh Premrajan
Shinesh Premrajan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Espavo,
Thanks for the input but the code that you provide produces the same problem with bigger gap.
Anyone knows why this behavior?
Shinug,
Your code works, but whats the difference?