You are here: Re: Simple (I think) 2 Col Layout with CSS « HTML « IT news, forums, messages
Re: Simple (I think) 2 Col Layout with CSS

Posted by Ed Seedhouse on 11/04/22 11:59

On 27 Sep 2006 06:34:39 -0700, sandravandale@yahoo.com wrote:

>Here's what I'd like to do, have two columns #side, and #main
>positioned adjacent to each other. I'd like #main to come first in the
>html if possible so I don't have to scroll past #side every time I look
>at the source, but I can give on this requirement. #side is 188px
>always. #main should expand to use up the rest of the space. Niether
>can be absolutely positioned.
>
>That's it, should be one of the easiest things to do in css,

It is.

>but I
>can't get it to work. Every time I find something that works in
>firefox, it dies a gruesome death in <clenched teeth> good old loveable
>IE</clenched teeth>. Please, someone, help me out of this rut before I
>go mad.

#side gets a "float: left;" and a "width: 188px;"

# main gets no float and a "margin-left: 189px;"

That's it. For IE you might need to give either div a "display: block;"
to fix it's margin bugs.



Although for a really flexible layout it's better that the margins be in
ems than pixels.

 

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

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