p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   CSS Cascading Style Sheets (http://p2p.wrox.com/forumdisplay.php?f=146)
-   -   Issue with DTD (http://p2p.wrox.com/showthread.php?t=48063)

tgopal September 20th, 2006 03:47 AM

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>



meow September 20th, 2006 04:12 AM

See these pages.

(Note that the quirksmode page is at archive.org. Links in the page are rewitten by them).
http://web.archive.org/web/200503200...ercheight.html
http://hsivonen.iki.fi/doctype/


--
http://yupapa.com

meow September 20th, 2006 04:15 AM

Gah! This board eats my links. The first line is ONE link (it contains two http://). I can't be arsed to figure out how to trick the board. Here: http://snipurl.com/wpdk [:0]

--
http://yupapa.com


All times are GMT -4. The time now is 01:40 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.