You are here: Table height inside form « HTML « IT news, forums, messages
Table height inside form

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация