Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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>


Reply With Quote
  #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
Reply With Quote
  #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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:18 PM.


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