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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

splitting images

Status
Not open for further replies.

monkeymeister

Programmer
Mar 17, 2005
58
GB
How do you split an image into 1 or more pieces and display it on your website without getting gaps in between the images (e.g. see my test website Is this a HTML issue or a image software one?

Any help would be really appreciated.


Cheers,

Mike
 
Because your table is 760 pixels wide and the images are only 756 in total, you must expect a gap somewhere.

Change the width of your table to 756 and the gap vanishes.

Hope this helps,
Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Put both images in the same cell with FLOAT:LEFT:
Code:
<td width="756">
<img src="images/header3.png" width="350" height="150" hspace="0" vspace="0" border="0" style="float:left">    
<img src="images/header2.png" width="406" height="150" hspace="0" vspace="0" border="0" style="float:left">
</td>

Mike Krausnick
Dublin, California
 
Or even easier, just put both images in the code and don't put any spaces between them. Images are inline and should stack the way you want them to:
Code:
<img src="images/header3.png" width="350" height="150"  alt="First Header" /><img src="images/header2.png" width="406" alt="Second Header" />
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top