|
Posted by ivan.svaljek on 11/01/06 23:29
I'm working on an ASP.NET project(requires controls to be placed inside
form tag, and XHTML transitional). The problem is with setting the
table height to 100%, I'm using css to accomplish that, but firefox
doesn't like it inside form element.
This is the table height code:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Table Height Test</title>
<style type="text/css">
<!--
html, body {
height: 100%;
margin: 0;
padding: 0;
}
table {
height: 100%;
width: 100%;
background-color: #CCC;
}
td {
text-align: center;
}
//-->
</style>
</head>
<body>
<table>
<tr>
<td>
Centered Content
</td>
</tr>
</table>
</body>
</html>
It works as advertised(ie,opera,firefox), until I put the table in the
form element(as required by ASP.NET) - then firefox leaks.
Any ideas?
Navigation:
[Reply to this message]
|