absolute positioning-scheme: 9.3.1

 

Hallo folks,

Jonathan made me have a look at 
http://www.w3.org/TR/REC-CSS2/visuren.html#positioning-scheme

Specifically, section 9.3.1 says about the "absolute" scheme that "The
box's position (and possibly size) is specified with the 'left',
'right', 'top', and 'bottom' properties."

I really liked the "size" part so I tried to test the following:

<html>
<head>
 <style type='text/css'>
  #abc {
   /* Try making the div expand to cover the most of the <body>, leaving
only 50 pixels around it */
   background-color:#f3f3f3;
   position:absolute;
   top:       50px;
   right:     50px;
   bottom: 50px;
   left:       50px; 
  }
 </style>
</head>
<body>
 <div id='abc'>
  This is a div with position:absolute
 </div>
</body>
</html>


Well it does not work. The div is occupying just the space it's inner
text needs (in IE). Is this rendering correct?

The errata for  9.3.1 only mentions 'static'.

Kindest regards,

Manos

Received on Tuesday, 17 July 2001 04:36:21 UTC