Nested Tables

  • 19 years ago

    How can I display a background image in a nested table? The following code does not show the background...What is wrong here?


    <table border=1>
    <tr>
    <td>
    <table border=0>
    <tr><td background="blablaba.gif">BlaBlaBla</td></tr>
    </table>
    </td>
    </tr>
    </table>

  • 19 years ago

    try


    <table border=1>
    <tr>
    <td>
    <table border=0 background="blablaba.gif">
    <tr><td>BlaBlaBla</td></tr>
    </table>
    </td>
    </tr>
    </table>


    that way any new cells in the nested table will have the same background. also have a look at the height and width of the cells because the image will not force the table to expand to fit it. get back to me if this still isn't working.


    nzjonboy

  • 19 years ago

    Mmmm... There's noting wrong with the code, you probably need to check your file extension, make sure it matches with your code. For example, if your pic ends in .GIF using .gif as a bg image won't do the trick.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“A computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match” - Bill Bryson