This is a discussion on How to set background image for <td> using style property? within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; Hi, We can set background for <td> using the following codes, <td style="background-image:url(...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, We can set background for <td> using the following codes, <td style="background-image:url(images/img_arrow.gif)"></td> |
|
#2
| |||
| |||
| Hi Poornima, Check out the following links : HTML Tutorial - Background <td> with background image - what's the right way? - HTML Hope it helps. |
|
#3
| |||
| |||
| Hi ammulu, Thanks for your reply.There are many ways to set image for <td> but in some browsers it won't work.It some cases it will be displayed as error in errorlist.The best way is to use the style property of <td> to set background image.It you didn't specify url it won't works. |
|
#4
| |||
| |||
| Hi, Yep you are right.I hope <td background-image="images/1.gif" width="200"> this must work ![]()
__________________ Sathish Kumar.R ![]() Knowledge is meant to SHARE |
|
#5
| |||
| |||
| hi, The coding given by you doesn't work.Have you checked this coding?It display warnings in errorlist. Last edited by poornima : 01-25-2008 at 01:48 AM. |
|
#6
| |||
| |||
| Hi, Sorry for the wrong code.Try this. <td background="images/bg_space_panel.gif"> </td>
__________________ Sathish Kumar.R ![]() Knowledge is meant to SHARE |
|
#7
| |||
| |||
| Hi Sathish, Thanks.Your code is working.But it is not showing the full image.To get full image we have to give as much space that it require to show the whole image.But background is not a valid property of <td>.If we use this,it shows warning in the errorlist.To avoid the warning,use <td style="background-image:url(images/spacer.gif)"></td>. Last edited by poornima : 01-31-2008 at 12:26 AM. |
|
#8
| |||
| |||
| Thanks for all your post |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Background image dimension for Dreamweaver CS3 | neluni | HTML, CSS and Javascript Coding Techniques | 8 | 06-20-2009 11:21 AM |
| How to create an image from panel background Image | S.Vinothkumar | C# Programming | 1 | 10-22-2007 03:52 AM |
| Purpose of regexp_label property and regexp_MSW_class property? | Shanthi | Testing Tools | 1 | 08-10-2007 06:01 AM |
| Can we capture the desktop background image programatically using c#? | mobilegeek | C# Programming | 1 | 07-20-2007 01:10 AM |
Our Partners |