Why in this code colspan is not working properly?
تبليغيرجى شرح بإيجاز لمإذا تشعر أنك ينبغي الإبلاغ عن هذا السؤال.
I have a table according to below. The first row has defined two columns, one with colspan=4 and the others with colspan=1. and for second row, has defined three columns, one with colspan=2 colspan=2 and the last one with colspan=1., and for third row, has defined three columns, one with colspan=1 colspan=3 and the last one with colspan=1.
but it doesn’t work properly like this:
<html>
<head>
<title></title>
</head>
<body>
<table border=”1″ align=”center” width=”20%” cellpadding=”20px” style=”border-collapse: collapse; text-align: center;”>
<tbody>
<tr>
<td colspan=”4″>1</td>
<td>2</td>
</tr>
<tr>
<td colspan=”2″>3</td>
<td colspan=”2″>4</td>
<td>5</td>
</tr>
<tr>
<td>6</td>
<td colspan=”3″>7</td>
<td>8</td>
</tr>
</tbody>
</table>
</body>
</html>
أضف إجابة