Bryce Fields wrote:
> ...
> 
> http://technology.ky.gov/epmo/epmo_team.htm
> 
> You'll notice the font sizing in the (icky) layout table is rendering
> considerably smaller than what it should when compared in other
> browsers.  Using the web developer bar for IE, I've traced the issue
> down to the table cell level where IE inexplicably decides to
> calculate an absolute value for the font size even though no rules
> target the TD.  This throws off the 0.7em font size that is on the
> unordered list, causing it to render smaller than intended in IE.
> 
> Anyone have a clue as to what's really going on and how to create a
> general fix for this problem.  And yes, I KNOW the page doesn't
> validate, ...

Yes, the page does not validate.

There is a table nested in a paragraph.

Example

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css">
   p {font-size: 2em;}
   td {font-size: 1em;}
</style>
</head>

<body>
   <p>Para

     <table>
         <tr>
           <td>Data</td>
         </tr>
     </table>
   </p>
</body>
</html>


Normal Browswers close the <p>Para to <p>Para</p. You can verify this in 
Firebug, Webkit Web Inspector, and Opera Developer Console. But IE6 and 
IE7 do not comply.

Because your page has font-size settings on the p and of elements inside 
the table, IE will calculate these on a basis of the p setting.

Normal browsers won't, because internally, the table is not a child of 
the p anymore.

This causes quite different rendering in IE compared to the others.

With invalid code, you are testing the error recovery capabilities of 
the browsers. Debugging invalid code without correcting it wastes 
resources. Validation should not become an end in itself.

Ingo

-- 
http://www.satzansatz.de/css.html
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to