HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
how to resize the background image of a <td> tag
Post new topic   Reply to topic    HTML Help Forum Index -> PHP
View previous topic :: View next topic  
Author Message
manoj_imagination



Joined: 28 Oct 2009
Posts: 1

PostPosted: Wed Oct 28, 2009 11:07 am     how to resize the background image of a <td> tag Reply with quote

<div class="product-pic">
<table width="133" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="133" align="right" valign="top" background="images/pic1.jpg" style=" background-position:center center; background-repeat:no-repeat;"><img src="images/sale.png" alt="sale" width="56" height="51" /></td>
</tr>
</table></div>



in above code in <td> tag pic1.jpg has a size of 500x400 .i want to fit this image into 127x127 in <td> tag.....

pls tell me how to resize the image so that it will fit in <td>
sticks464



Joined: 31 Dec 2006
Posts: 2308

PostPosted: Wed Oct 28, 2009 1:44 pm     Reply with quote

Since width and height is not applied to background images you'll have to resize to the actual size of the td.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> PHP All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial