Changes between Version 1 and Version 2 of documentation/tutorials/WindowTemplate

Show
Ignore:
Author:
peterc (IP: 192.168.0.1)
Timestamp:
01/08/08 14:10:50 (10 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • documentation/tutorials/WindowTemplate

    v1 v2  
    150150That in itself won't do much, but now we can play around with its position to the pixel with the 'top' and 'left' properties. 
    151151 
    152 If you don't set the 'top' or 'left' (or 'right' or 'bottom') to change the height of an absolutely positioned element, it will stay where the layout engine positioned it, but be removed from flow so it will not affect the layout of future elements. If you do change it position, with the 'top' property for example, its top edge will be aligned against the top padded edge of its offset parent (in our case, the window), offset by the amount of the property. 
     152If you don't set the 'top' or 'left' (or 'right' or 'bottom') to change the height of an absolutely positioned element, it will stay where the layout engine positioned it, but be removed from flow so it will not affect the layout of future elements. If you do change its position, with the 'top' property for example, its top edge will be aligned against the top padded edge of its offset parent (in our case, the window), offset by the amount of the property. 
    153153 
    154154We need to shift the element up, so we use the 'top' property to do this. If we declare 'top: 0px;', it will be aligned at the very top of the window; so, exactly where it is now. To move it up, specify a negative number. 43 pixels seems to do the trick.