W3C home > Mailing lists > Public > www-style@w3.org > October 2007

element positioning proposal

From: <Eugen.Konkov@aldec.com>
Date: Tue, 23 Oct 2007 11:33:48 +0300
Message-ID: <010b01c8154f$6f3875f0$0100a8c0@kharkov.localhost>
To: <www-style@w3.org>
  ul.menu, ul.hmenu {
   margin: 0px;
   padding: 0px;
   border: 1px solid red;
   position: absolute;
   }

  ul.menu li {
   list-style-type: none;
   border: 1px solid green;
   position: relative;
   }
  ul.hmenu li {
   display: inline;
   list-style-type: none;
   border: 1px solid green;
   }


<ul class="menu">
  <li>1
  <li>2 
  <li>3 
    <ul class="hmenu" style="left: 10px; bottom: -height +2px;">
      <li>a
      <li>b
    </ul>
   </li>
<ul>

NOTICE: bottom: -height +2px

it is equivalent to:
top: ownerElementHeight -2px
Received on Tuesday, 23 October 2007 08:35:40 GMT

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