Jump to content
Sign in to follow this  
Sim

td background image height will not expand

Recommended Posts

The original image is only 21pixels tall. I need it to be 50. It tiles instead of expands. Any ideas?

 

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

Share this post


Link to post
Share on other sites

Thanks a_bertrand. You always give answers when no one else seems to know or wants to respond. ;]

Share this post


Link to post
Share on other sites

Here is a trick I use for resizing, what it does is set the max width and height, As for the IMG tagging leave off the width and height part this css will work for it the expression part is for IE browsers the two top are for firefox and other browsers...This will help not to expand your tables as similar to the break-word function in css... This does need to go in a div whatever class your using for it to work properly or you can set it as the .img if your not using a div I have it set differently because I have different tables sizes so i use div.

max-width: 400px;

max-height: 300px;

width: expression(this.width > 400 ? "400px" : true);

height: expression(this.height > 350 ? "350px" : true);

 

If your trying to expand it you would use

mid-width:

mid-height:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...