Solved

Remove white line between images

Posted on 2010-08-16
8
311 Views
Last Modified: 2012-05-10
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
0
Comment
Question by:PagodNaUtak
8 Comments
 
LVL 17

Expert Comment

by:shinuq
ID: 33451870
<div id="banner" style="border:0px solid;">

Replace with this

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

Hope this helps..
0
 
LVL 19

Expert Comment

by:Amandeep Singh Bhullar
ID: 33451930
Check for any white spaces or &nbsp; in the code.
0
 
LVL 8

Author Comment

by:PagodNaUtak
ID: 33451934
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

0
 
LVL 8

Author Comment

by:PagodNaUtak
ID: 33451939
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?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 10

Expert Comment

by:Espavo
ID: 33451941
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

0
 
LVL 17

Accepted Solution

by:
shinuq earned 500 total points
ID: 33451955
Just paste this code, Then its a problem with the white spaces within your code..

Hope this helps..
<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

0
 
LVL 8

Author Comment

by:PagodNaUtak
ID: 33451972
Hi Espavo,
Thanks for the input but the code that you provide produces the same problem with bigger gap.
Anyone knows why this behavior?
0
 
LVL 8

Author Comment

by:PagodNaUtak
ID: 33451988
Shinug,
Your code works, but whats the difference?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to access a DataBinder.Eval variable using C# ? 4 27
Runtime Exceptions when trying to submit data 28 36
Centering Vertically 3 27
Remove lines by logo 2 20
Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
This video teaches users how to migrate an existing Wordpress website to a new domain.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now