Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Remove white line between images

Posted on 2010-08-16
8
Medium Priority
?
319 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 17

Expert Comment

by:Shinesh Premrajan
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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
 
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:
Shinesh Premrajan earned 2000 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

715 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