Jump to content
MakeWebGames

td background image height will not expand


Sim

Recommended Posts

  • 2 weeks later...

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:

Link to comment
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.

×
×
  • Create New...