|
Posted by Harlan Messinger on 08/22/06 14:13
Luigi Donatello Asero wrote:
> "Harlan Messinger" <hmessinger.removethis@comcast.net> skrev i meddelandet
> news:4kun6fFdvassU1@individual.net...
>> Luigi Donatello Asero wrote:
>>> Hello,
>>> if I have 3 containers and I want to position one on the left, one on
> the
>>> right and one on the middle without using absolute positioning so that I
> can
>>> still see all of them regardless of the width of the browser window how
> do I
>>> adjust the margins in a way that one of them floats to the right
> although
>>> these columns do not have the same length?
>> float: right;
>>
>> The margin has nothing to do with it.
>
>
> A <div> which is floated tends to take a position which is more on the top
> (if there is space there)
> instead of the one which is more on the right,
> does it not?
I don't know what you mean by "more on the right". Like everything on
the screen, a floated DIV has a horizontal and a vertical location. A
right-floated DIV floats to the right of its container. Its vertical
position is the same as it would have been if it hadn't been floated. If
a right-floated div is the first thing in its container, then it will be
positioned at the top right corner of its container.
Navigation:
[Reply to this message]
|