S
simon
I have simple html(aspx) page, but vertical height won't work.
Even if i had set the height of a table=100%, the table is not 100% height.
I spend a lot of time(my real page is more complicated) to figured it out that this won't work because of attribute of a page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
I have visual studio 2005 beta2 and it appends this attribute to every page.
How can I get rid of this attribute or how can I set that height of a table in % will work?
Code of a page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head></head>
<body>
<table border=1 ><tr valign=top><td>
<table height=100% border=1 style="border-color:red">
<tR><td valign=top>
<table >
<tR><td height=5></td></tr>
</table>
<table border=1>
<tR><td>test</td></tr>
</table>
</td></tr>
<tR><td valign=top >
<table border=1 height=100%>
<tR><td>test2</td></tr>
</table>
</td></tr>
</table>
</td>
<td>
<table>
<tR><td>
<table border=1>
<tR><td>test1</td></tr>
<tR><td>test2</td></tr>
<tR><td>test3</td></tr>
<tR><td>test4</td></tr>
<tR><td>test5</td></tr>
</table>
</td></tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Even if i had set the height of a table=100%, the table is not 100% height.
I spend a lot of time(my real page is more complicated) to figured it out that this won't work because of attribute of a page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
I have visual studio 2005 beta2 and it appends this attribute to every page.
How can I get rid of this attribute or how can I set that height of a table in % will work?
Code of a page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head></head>
<body>
<table border=1 ><tr valign=top><td>
<table height=100% border=1 style="border-color:red">
<tR><td valign=top>
<table >
<tR><td height=5></td></tr>
</table>
<table border=1>
<tR><td>test</td></tr>
</table>
</td></tr>
<tR><td valign=top >
<table border=1 height=100%>
<tR><td>test2</td></tr>
</table>
</td></tr>
</table>
</td>
<td>
<table>
<tR><td>
<table border=1>
<tR><td>test1</td></tr>
<tR><td>test2</td></tr>
<tR><td>test3</td></tr>
<tR><td>test4</td></tr>
<tR><td>test5</td></tr>
</table>
</td></tr>
</table>
</td>
</tr>
</table>
</body>
</html>