NYCPHP Meetup

NYPHP.org

[nycphp-talk] And the HTML guru is....

LK lk613m at yahoo.com
Thu Jan 4 10:16:34 EST 2007


In this snippet I don't see where the document type is declared as "quirks" mode. What am I missing?


----- Original Message ----
From: Kenneth Downs <ken at secdat.com>
To: NYPHP Talk <talk at lists.nyphp.org>
Sent: Thursday, January 4, 2007 9:12:42 AM
Subject: [nycphp-talk] And the HTML guru is....


Hi folks,

A helpful HTML guru has given me the solution to my height-dont-work 
problem in IE 6.

The guru is.... (drumroll)  Tom Melendez of LIPHP fame.  He pointed out 
that changing the document type declaration to "quirks" mode makes IE 
work, instantly fixing the problem.

For completeness, here is a simplified snipeet that illustrates the 
fixed situation:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">        
<html>
<head>
   <style>
   html, body {
      height: 100%;
      width: 100%;
      margin: 0px;
   }
   </style>
</head>
<body>
<center>
   <table cellspacing=0
          style="width: 500px; height: 100%;">
   <tr><td style="height: 100px" bgcolor=red>a </td></tr>
   <tr><td>hello </td></tr>
   <tr><td style="height: 100px" bgcolor=blue>b </td></tr>
   </table>
</center>
</body>
begin:vcard
fn:Kenneth  Downs
n:Downs;Kenneth 
adr;dom:;;347 Main Street;East Setauket;NY;11733
email;internet:ken at secdat.com
tel;work:631-689-7200
tel;fax:631-689-0527
tel;cell:631-379-0010
x-mozilla-html:FALSE
url:http://www.secdat.com
version:2.1
end:vcard
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20070104/07f861b5/attachment.html>


More information about the talk mailing list