开发者

HTML table with different count of td

开发者 https://www.devze.com 2023-03-19 21:50 出处:网络
For logo and and menu I have table with two rows. And Picture of person. Upper part of the body is on first row and lower part is on second ro开发者_开发问答w. First row should have only one td that i

For logo and and menu I have table with two rows. And Picture of person. Upper part of the body is on first row and lower part is on second ro开发者_开发问答w. First row should have only one td that is logo of the site and in second row i should make multiple td Can someone help me with that task. I should use tables because my client want it.


You can use the colspan attribute on a <td> element to make it fit more than one column, just increase the number to however many columns you want it to fit across

<table>
    <tr>
        <td colspan="2">Long column</td>
    </tr>
    <tr>
        <td>Small</td>
        <td>Column</td>
    </tr>
</table>


jou can use collspan (like in cell[2,0]), further info: http://reference.sitepoint.com/html/td/colspan

HTML table with different count of td

0

精彩评论

暂无评论...
验证码 换一张
取 消