NYCPHP Meetup

NYPHP.org

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

Kenneth Downs ken at secdat.com
Thu Jan 4 09:12:42 EST 2007


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>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ken.vcf
Type: text/x-vcard
Size: 261 bytes
Desc: not available
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20070104/5945742c/attachment.vcf>


More information about the talk mailing list