W3C home > Mailing lists > Public > www-style@w3.org > July 2001

absolute positioning-scheme: 9.3.1

From: Manos Batsis <m.batsis@bsnet.gr>
Date: Tue, 17 Jul 2001 11:35:10 +0300
Message-ID: <A35E2040C17F0C48B941B8F4D0DF122908E2DF@ermhs.Athens.BrokerSystems.gr>
To: <www-style@w3.org>
 

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:10 GMT