td background image height will not expand

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

td background image height will not expand

Post 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">
Reviresco
Forum Contributor
Posts: 172
Joined: Tue Feb 19, 2008 4:18 pm
Location: Milwaukee

Re: td background image height will not expand

Post 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.
bestwebdesigner
Forum Newbie
Posts: 9
Joined: Mon Jan 31, 2011 4:38 am

Re: td background image height will not expand

Post 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.
klevis miho
Forum Contributor
Posts: 413
Joined: Wed Oct 29, 2008 2:59 pm
Location: Albania
Contact:

Re: td background image height will not expand

Post by klevis miho »

Put the height into the "tr"
Post Reply