Hi all,

I want to ask how to fit the image as background of one cell in a table?

Here is my snippet code:

<table border ="0" cellpadding="2" cellspacing="4">

<%
    for( .... ){
%>
                <tr>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td></td>
                    <td>In this cell I want to add the image as the background..how can i do it and fit the whole cell? I tried to use below code but it doesn't work well</td>
                    <!--<td BACKGROUND="baloon.png"></td>-->
                </tr>

<%
    }
%>
</table>

Anyone has idea how to solve it ?
thanks

<td style="background-image:baloon.png" >

<td style="background-image:baloon.png" >

Sorry it doesn't work...
it doesn't fit the whole cell..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.