Click to See Complete Forum and Search --> : onmouseover html (photos stretch, i need them to stay the same size)


ning
08-02-2006, 12:10 AM
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=200013571238

the photos in my gallery are stetching. i want them to stay the same size and just appear in the middle of the box. is there any way to do this?

heres the html code im using...

<DIV align=center><IMG onmouseover="mainimg.src='http://ballboyink.com/layout/images/1.jpg';switchMain()" alt="alt text" src="http://ballboyink.com/layout/images/1small.jpg" border=0></DIV></TD>
<TD rowSpan=4><IMG height=158 alt="" src="http://ballboyink.com/layout/images/index_24.gif" width=10></TD>
<TD bgColor=#9f9c99 colSpan=2 rowSpan=2>

gil davis
08-02-2006, 07:29 AM
You'll have to make the images all the same ratio height to width (158/10).

KDLA
08-02-2006, 11:14 AM
You've got height and width settings in your code:
><IMG height=158 alt="" src="http://ballboyink.com/layout/images/index_24.gif" width=10>
Take those out, and add a style to the table cell to place whatever is in it in the center:
<td rowspan=4 style="text-align: center">contents of cell</td>

pacerier
08-05-2006, 06:27 AM
its best to make the size of the images identical for mouseovers and mouseouts otherwise it will bump the other elements in the page too which isn't desirable.