<html>
<body>
<table>
<tr>
<td rowspan="2">
<textarea rows="2" cols="10">Textarea</textarea>
</td>
<td rowspan="3">
<select size="5" multiple="multiple">
<option>Select option 1</option>
<option>Select option 2</option>
<option>Select option 3</option>
<option>Select option 4</option>
<option>Select option 5</option>
</select>
</td>
</tr>
<tr>
<td>
<input type="text" value="Textbox">
</td>
</tr>
</table>
</body>
</html>
Could someone please explain to me, why the above HTML produces sample1.png (attached), instead of the expected sample2.png (also attached).ASKER
ASKER
<html>
<body>
<table>
<tr>
<td rowspan="2">
<textarea rows="2" cols="10">Textarea</textarea>
</td>
<td rowspan="3">
<select size="5" multiple="multiple">
<option>Select option 1</option>
<option>Select option 2</option>
<option>Select option 3</option>
<option>Select option 4</option>
<option>Select option 5</option>
</select>
</td>
</tr>
<!-- Inserting a dummy row, so all rows contain something -->
<tr>
</tr>
<tr>
<td>
<input type="text" value="Textbox">
</td>
</tr>
</table>
<table>
<tr>
<!-- Putting the single row element first, so all rows contain something -->
<td>
<input type="text" value="Textbox">
</td>
<td rowspan="3">
<select size="5" multiple="multiple">
<option>Select option 1</option>
<option>Select option 2</option>
<option>Select option 3</option>
<option>Select option 4</option>
<option>Select option 5</option>
</select>
</td>
</tr>
<tr>
<td rowspan="2">
<textarea rows="2" cols="10">Textarea</textarea>
</td>
</tr>
</table>
</body>
</html>
Attached is a screen shot from Firefox (sample3.png).Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.
TRUSTED BY
Open in new window