html - Make uneven table layout -
when use <table>
<tr>
, <td>
nxn
tables , not want.
for example:
<table border = "1"> <tr> <td> love peanuts? important question. </td> </tr> <tr> <td> yes, do. </td> <td> no, don't. </td> </tr> </table>
and yet, looks 2x2 1 there blank square created on page.
an example here.
how can make first row (with 1 element) spread same 1 2 elements. i'm not talking minimizing number of lines (in text) or whatever, mean stretching there.
you can solve using attribute colspan on td tag:
<table border = "1"> <tr> <td colspan="2"> do love peanuts? important question. </td> </tr> <tr> <td> yes, do. </td> <td> no, don't. </td> </tr> </table>
check link
Comments
Post a Comment