You are here: Re: Using percentage widths « HTML « IT news, forums, messages
Re: Using percentage widths

Posted by dorayme on 12/21/06 22:05

In article <slrneol90f.i37.spamspam@bowser.marioworld>,
Ben C <spamspam@spam.eggs> wrote:

> Well, I don't design a lot of websites, but it seems to me that
> absolute positioning is better for this than floats.
>
> This way they'll always run right to the edge and never jump down:
>
> <style type="text/css">
> div
> {
> position: absolute;
> height: 600px;
> }
> #one
> {
> left: 0;
> right: 66%;
> background-color: red;
> }
> #two
> {
> left: 33%;
> right: 33%;
> background-color: green;
> }
> #three
> {
> left: 66%;
> right: 0;
> background-color: blue;
> }
> </style>

Why the two dimensions, left and right? Would not left be good
enough, at least for #one and #two? Or am I not thinking this
through, I don't use absolute positioning myself (but I am
thinking of it! I like the idea of the content being first in the
source code).

--
dorayme

 

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

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