css question

Hello,

I'm having trouble with the www-style group so I'm posting here...

I've tested the following in Netscape, Opera and IE, with three different
results. I want to know which is correct. From reading the spec it seems
that Netscape is correct, but I want to make sure.

<?xml version="1.0" encoding="utf-8"?>
<!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">
<body>
<div style="height: 50px; border-width: 10px; border-style: solid;
background-color: red;" >
 <div style="height: 100%; border-width: 10px; border-style: solid;
border-color: blue; background-color: yellow;">
 </div>
</div>
</body>
</html>

Here's a gif image of the three different results:

http://www.lerstad.com/height_percent.gif

--
Sigurd Lerstad

Received on Monday, 3 May 2004 10:34:24 UTC