Thread: Issue with DTD
View Single Post
  #1 (permalink)  
Old September 20th, 2006, 03:47 AM
tgopal tgopal is offline
Authorized User
 
Join Date: Jun 2003
Location: , , India.
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to tgopal
Default Issue with DTD

Hi
I am trying to display the table size as the size of the screen.
That is if the table has four rows then the four rows height should be automatically adjusted to occupy the size of the screen. Below sample perfectly works in Firefox but it is not working in IE.

Please pass your suggestions to overcome this problem

If i remove the doctype it is working fine, but i want the DTD need to be included in my HTML page.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">

<html>
<head>
<title>Sample</title>
<style type="text/css">
.tablestyle{
position:relative;
height:100%;
width:100%;
}
</style>
</head>
<body>

<table border="1" id="abc" class="tablestyle">
<tr><td>Hai1</td></tr>
<tr><td>Hai2</td></tr>
<tr><td>Hai3</td></tr>
<tr><td>Hai4</td></tr>
<tr><td>Hai5</td></tr>
</table>
</body>
</html>


Reply With Quote