Reply to Re: wrapper problems with CSS

Your name:

Reply:


Posted by Els on 06/07/05 15:23

Gavin wrote:

> Here my code below.

Please don't copy paste code, provide a URL instead.

> If I put a border around the wrapper box, its fine if the content
> doesn't go below the bottem of the menu, but if it does, the wrapper doesn't
> expand to fit.

[snip a /lot/ of code]

> #maincontent {
> width: 525px;
> left: 140px;
> position: absolute;
> top: 170px;
> text-align: left;
> height: auto;
> }

position:absolute takes the element out of the normal flow.
The wrapper box doesn't "see" the #maincontent, so it won't expand to
fit either.

I can't give you a ready solution without diving into your code, which
I'm not keen to do atm. General solution: don't use position:absolute
on the #maincontent, but find another way of placing it where you
want. If it's a page with a floated menu of 140px to the left, just
give the #maincontent a left margin of 140px and don't position it.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: David Bowie - Beauty And The Beast

[Back to original 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

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