I Want To Create A Nested Table Or Table Row
When I use nested or nested , I can't create a column like that . Can anyone help me ????. This picture is exactly what I want .
Solution 1:
You need to use the HTML colspan
and rowspan
attributes.
HTML
<table><tr><tdcolspan="2"></td><td></td><td></td><td></td><td></td></tr><tr><tdcolspan="2"></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><tdrowspan="2"></td><tdrowspan="2"></td><tdrowspan="2"></td><tdrowspan="2"></td></tr><tr><tdcolspan="2"></td></tr></table>
CSS
table {
width: 100%;
}
td {
width: 100px;
height: 50px;
}
DEMO: http://jsfiddle.net/04yjcL2e/1/
For more information about colspan
and rowspan
see this post:
Post a Comment for "I Want To Create A Nested Table Or Table Row"