Warning: Undefined array key "StartingPoint" in /customers/f/f/0/safaribears.de/httpd.www/content.php on line 107 Warning: Cannot modify header information - headers already sent by (output started at /customers/f/f/0/safaribears.de/httpd.www/content.php:107) in /customers/f/f/0/safaribears.de/httpd.www/content.php on line 115 Warning: Undefined variable $WEB_ROOT in /customers/f/f/0/safaribears.de/httpd.www/content.php on line 118 Warning: Cannot modify header information - headers already sent by (output started at /customers/f/f/0/safaribears.de/httpd.www/content.php:107) in /customers/f/f/0/safaribears.de/httpd.www/content.php on line 118 Warning: Undefined array key "HTTP_ACCEPT_LANGUAGE" in /customers/f/f/0/safaribears.de/httpd.www/content.php on line 169
Before I can start with the explanation of 'position' I have to squeeze in another little section. You will need to know 4 other properties, to work properly with 'position'.
left, right, top, bottom. As with the 'height' and 'witdth' properties explained earlier, they work with the absolute unit px (pixel) and the relative units (em, font size; and %, percent relative to the parent element).
Back to 'position': So far, we still are not able to tell elements where to sit in a page, or containing block element. We can make things flow but that is not enough. For specific positioning one has to use the property 'position', with one of those values:
position:fixed; top:200px; left:20px;
), but with relative units: 20% to the left, 20% from the top.
Still, absolute positioning is a bit tricky because you never know in what environment your page will be viewed.
top:-10px;
position:relative;