You are here: Re: Page end with absolute divs. « HTML « IT news, forums, messages
Re: Page end with absolute divs.

Posted by Ian Shortman on 07/04/06 10:53

Yes - but when I do that the sidebar ends up below the content:

Header - FooBar
Content
Foo
Bar
Baz
Sidebar
All the
way
down
here

Jonathan N. Little wrote:
> Ian Shortman wrote:
> > I have a div called 'utility' with produces an absolute positioned
> > sidebar on my website. However, if the content is shorter than the
> > length of this sidebar - it overhangs the footer. By this I mean the
> > long length seems to not shift where the end of the content is
> > interpretted at. (An example can be seen on my site:
> > http://brokenbulb.co.uk/blog/1). I have tried to enclose this absolute
> > div within an relitive div content wrap ('wrap') - however this seems
> > to have had no effect.
>
> Of course it wouldn't, absolute positioned elements are not flowed with
> the page, See:
>
> http://www.w3.org/TR/CSS21/visuren.html#absolute-positioning
>
> I have also added the clear tag to a blank div
> > below all the content (<div style="clear:both;"></div>), and this also
> > seems to have failed to work.
>
> Clear works with floats not absolute positioning. Float left your
> sidebar then clear left on your footer would achieve what your desire.
>
> --
> Take care,
>
> Jonathan
> -------------------
> LITTLE WORKS STUDIO
> http://www.LittleWorksStudio.com

 

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

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