Sent by Jin Kim on 27 February 2002 12:12
Hello again,
> What? You mean it will shrink in height when the browser window is
> narrowed?
Yes. I found it rather odd. But then again I've seen some strange things
happen when using CSS. ;)
> That sounds awfully, awfully strange. I'd be interested in seeing a few
> screen grabs to see what this effect looks like.
I've posted some at http://www.chaosgallery.com/test/index.html
Note the scroll bar on the last shot.
I cleaned up the code a bit. I don't know why I had all that extra stuff...
The screenshots were done with..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
html, body {
height: 100%;
}
#testdiv {
height: 100%;
width: 200px;
background-color: #cccccc;
border:none;
}
</style>
</head>
<body>
<div id="testdiv">this div should have a height of 100%</div>
</body>
</html>
> I've heard similar things loosely claimed, but I don't recall ever
> seeing it in the specs. If someone has some meat to put on those bones, I'd
> be interested in hearing it; otherwise, I'd like to confirm that there is
> nothing to it, and squelch it altogether.
I'm going to try to do some more research and if I find any thing conclusive
I'll post it here.
Jin