|
Posted by Ben C on August 28, 2007, 11:29 am
Please log in for more thread options
> Werner Partner wrote:
>
>> http://michels.kairos-team.de/info.php
>>
>> Th blue <div> has fixed height. It looks better, and the purpose is that
>> people need not move the mouse up and down to klick [weiter] and
>> [zurück].
>>
>
> It looks bad on my browser because I've to horizontally scroll because of
> a browser panel on the left.
>
> You use a fixed layout. Fixed layout are bad for everybody but the author.
>
>> [...]
>> You see I tried
>> <div style="position:bottom">
>> <a href="index.php"><img src="pics/zurueck.gif" alt="" border="0" align
>> = "left"></a>
>> <a href="info.php?idx=2"><img src="pics/vor.gif" alt="" border="0"
>> align = "right"></a>
>> </div>
>>
>
> bottom is an invalid value for the position attribute:
> See http://www.w3.org/TR/CSS2/visuren.html#positioning-scheme
>
> "position: relative; bottom: 0px" could work.
No that wouldn't make any difference. What could work is "position:
absolute; bottom: 0", and "position: relative" on the box you want this
box to be at the bottom of.
Position: relative is relative to a box's normal flow position.
Position: absolute is relative to the box's containing block, and
position: fixed is relative to the viewport. Badly named if you ask me
but that's what they mean.
|