You are here: Re: Playing with floats « HTML « IT news, forums, messages
Re: Playing with floats

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация