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

Image is not centered...

Status
Not open for further replies.

tijerina

Vendor
Mar 4, 2003
132
US
I have a site that has three images centered on the main page (index.php).

Image1 Image2 Image3


When I replace Image2 with another image (.bmp) it looks like this.

Image1Image2 Image3.

Image2 moves to the left and is no longer centered between Image1 and Image3.

Here is the code snipit.

--------Start of Snipit-----------------------

<td bgcolor="ffffff" width="217" height="28" >
<a href=" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image50','','images/specials_over_01.gif',1)"><img name="Image50" border="0" src="images/specials_01.gif" align="middle" ></a>
</td>
<td bgcolor="ffffff" width="300" height="28" >
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image51','','images/wrenchincomputer.bmp',1)"><img name="Image51" border="0" src="images/wrenchincomputer.bmp" align="middle" ></a>
</td>
<td bgcolor="ffffff" width="219" height="28" >
<a href=" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image53','','images/specials_over_03.gif',1)"><img name="Image53" border="0" src="images/specials_03.gif" align="middle" ></a>
</td>
</table>

---------End of Snipit-----------------------

Why is Image2 not centered between Image1 and Image3?

Maybe this question should be in the HTML section of tek-tips..

Thanks.
 
This could be wrong on so many levels...

Yes, this is best asked in the HTML forum. This has nothing to do with PHP except for links to other PHP pages.

Why are you using BMP images? This is not ideal for web design.

- - picklefish - -
Why is everyone in this forum responding to me as picklefish?
 
Yeah, I figured this was an HTML question.

The entire site is not BMP, this is the only image that I have that is BMP.. I really don't see any issues with having one BMP pic, but I do agree with you...

I will go to the HTML forum.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top