W3C home > Mailing lists > Public > www-svg@w3.org > May 2004

css question

From: Sigurd Lerstad <sigler@bredband.no>
Date: Mon, 3 May 2004 16:38:46 +0200
Message-ID: <015801c4311c$57b6ce60$451273d5@mmstudio>
To: <www-svg@w3.org>

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 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:27 GMT