Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 20th, 2006, 03:47 AM
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>


  #2 (permalink)  
Old September 20th, 2006, 04:12 AM
Friend of Wrox
Points: 1,315, Level: 14
Points: 1,315, Level: 14 Points: 1,315, Level: 14 Points: 1,315, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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
  #3 (permalink)  
Old September 20th, 2006, 04:15 AM
Friend of Wrox
Points: 1,315, Level: 14
Points: 1,315, Level: 14 Points: 1,315, Level: 14 Points: 1,315, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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

--
http://yupapa.com


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automated tool to convert XML from DTD to DTD lsantos2000 XSLT 2 October 17th, 2007 08:21 AM
question DTD antiwind XML 1 February 24th, 2005 04:45 AM
Which DTD? Snib HTML Code Clinic 2 July 16th, 2004 03:34 AM
URGENT: how to use DTD? ritu XML 1 February 11th, 2004 12:12 PM
Help with DTD P Keshav XML 1 September 12th, 2003 12:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.