in html tables, is it possible to have only one cell?
For example, I have a 4x4 cell table on my website. I want a 5th row, but I only want the last cell of that 5th row, is that possible?
colspan only allows you to spread the whole cell out across the row, what I need is on the 5th row columns 1-3 are blank (not visible), but only the 4th column is visible. The table must also have a border.
Public Comments
- Use this: <td colspan="4"> when starting the table (i.e. replace the <td> for that row)
- yes. do [td colspan=4]
- Try using the following code (col=column). Where it says, for example, col 1 row 1 text, thats where you would place any text that you want in that location of the table. I hope this is what you were looking for: <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1"> <tr> <td width="25%"> <p align="left">col 1 row 1 text</td> <td width="25%"> <p align="left">col 2 row 1 text</td> <td width="25%"> <p align="left">col 3 row 1 text</td> <td width="25%"> <p align="left">col 4 row 1 text</td> </tr> <tr> <td width="25%"> <p align="left">col 1 row 2 text</td> <td width="25%"> <p align="left">col 2 row 2 text</td> <td width="25%"> <p align="left">col 3 row 2 text</td> <td width="25%"> <p align="left">col 4 row 2 text</td> </tr> <tr> <td width="25%"> <p align="left">col 1 row 3 text</td> <td width="25%"> <p align="left">col 2 row 3 text</td> <td width="25%"> <p align="left">col 3 row 3 text</td> <td width="25%"> <p align="left">col 4 row 3 text</td> </tr> <tr> <td width="25%"> <p align="left">col 1 row 4 text</td> <td width="25%"> <p align="left">col 2 row 4 text</td> <td width="25%"> <p align="left">col 4 row 4 text</td> <td width="25%"> <p align="left">col 4 row 4 text</td> </tr> <tr> <td width="75%" colspan="3"> <p align="left">col 1-3 row 5 text</td> <td width="25%"> <p align="left">col 4 row 5 text</td> </tr> </table> Goodluck!
Powered by Yahoo! Answers