Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How come I get a border when border="0"

Status
Not open for further replies.

rewdee

Programmer
Aug 17, 2001
295
0
0
US
I tried a simple html that merges two images into one as shown below:
Code:
<html>
<head>
</head>
<body>
<table height="658" width="801" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td  width="277"><img border="0" src="Images/Left_First.JPG" width="277" height="658"></td>
    <td width="524">      
       <img border="0" scr="images\Top_First.jpg" src="Images/Right_First.JPG" width="524" height="658" >
    </td>
  </tr>
</table>  
</body>
</html>
The result of the html displays a border between the two images. Anyone know why?

Thanks,
Rewdee
 
try this as your second table cell:

Code:
<td width="524"><img border="0" scr="images\Top_First.jpg" src="Images/Right_First.JPG" width="524" height="658" /></td>

white-space can be a nightmare.

*cLFlaVA
----------------------------
[tt]your mom goes to college[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
[banghead]
 
In addition to Cory's suggestion you also need to edit your images. The image on the left actually has a white border, so that is why you're seeing the white gap between the 2 images. Pull it up in photoshop and change it to black or just crop it off.

-kaht

...looks like you don't have a job, so why don't you get out there and feed Tina.
headbang.gif
[rockband]
headbang.gif
 
wow. sometimes i become a machine on here. question comes in, my brain searches for common questions, one is found, fingers type common answer.

i usually assume things like 'people would not put a white border on their image and then ask where the white border is coming from.' shows you what you get from assuming things.

*cLFlaVA
----------------------------
[tt]your mom goes to college[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
[banghead]
 
shows you what you get from assuming things
No harm, usually your assumations are spot on.

-kaht

...looks like you don't have a job, so why don't you get out there and feed Tina.
headbang.gif
[rockband]
headbang.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top