Page 1 of 1

td background image height will not expand

Posted: Tue Jan 25, 2011 2:26 pm
by psychotomus
The original image is 21pixels tall. It tiles instead of streching, Any ideas?

Code: Select all

<td width="100%" background="images/boxtopbg.gif" height="50">

Re: td background image height will not expand

Posted: Wed Jan 26, 2011 12:17 pm
by Reviresco
You can try the CSS3 background-size property:

background-size: 100%

But CSS3 is only supported on some browsers and some only partially.

Re: td background image height will not expand

Posted: Mon Jan 31, 2011 5:24 am
by bestwebdesigner
Hi,
Add the image using CSS like
{
background:url("boxtopbg.gif") no-repeat;
width:auto;
height:auto;
}
The no-repeat option is for display the original image without tile.Chage width and height according to the image size.

Re: td background image height will not expand

Posted: Wed Feb 02, 2011 7:55 am
by klevis miho
Put the height into the "tr"