Why does this table height not function?
<table border=1 bgcolor="green" width=80% height="30%">
<tr>
<td rowspan="2" >
This is 1st row 1st column
</td>
<td >
2
</td>
</tr>
</table>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
just add the following to your css:
As other said, a
tabledoesn’t have aheight-attriute, but most browsers intrepet that anyway. you can see the result on jsfiddle.The reason you need to do this is that the parent element of anything that should have a height in % must have a height too (as Shadow Wizard said: “30% of what exactly?” – the parent has to have a height).