html - Draw some rectangles by table tag -
html - Draw some rectangles by table tag -
i'm trying create shape tables:
my html code this:
<html> <head> <title>exercise!</title> </head> <body> <table border="1" width="100%" height="100%"> <tr> <td colspan="2"></td> <td colspan="3"></td> <td colspan="2"></td> </tr> <tr> <td colspan="1"></td> <td colspan="2"></td> <td colspan="1"></td> <td colspan="2"></td> <td colspan="1" rowspan="2"></td> </tr> <tr> <td colspan="2"></td> <td colspan="1"></td> <td colspan="2"></td> <td colspan="1"></td> </tr> </table> </body> </html>
this html code gets me wrong shape:
but when add together row without colspan
, rowspan
s, browser shows right shape row:
here code creates right shape row:
<html> <head> <title>exercise!</title> </head> <body> <table border="1" width="100%" height="100%"> <tr> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td colspan="2"></td> <td colspan="3"></td> <td colspan="2"></td> </tr> <tr> <td colspan="1"></td> <td colspan="2"></td> <td colspan="1"></td> <td colspan="2"></td> <td colspan="1" rowspan="2"></td> </tr> <tr> <td colspan="2"></td> <td colspan="1"></td> <td colspan="2"></td> <td colspan="1"></td> </tr> </table> </body> </html>
what problem?
edit : ie shows big blank rectangle!!!! problem?
problem borders. when add together row fields specified, draws border between each field fields, without row, of borders not drawn, rows have less pixels others
html
Comments
Post a Comment