HighDots Forums  

problem with floats and overlapping divs

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss problem with floats and overlapping divs in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jochen Eisinger
 
Posts: n/a

Default problem with floats and overlapping divs - 11-18-2003 , 02:56 PM






Hi,

I'm trying to arange the following layout with css (see
http://c0ffee.org/test/index.html & /test/style.css):

On the one hand, I have a (red) main div and a (green) "float: left;"
menu. On the other hand there's a (blue) footer with an (black) image in
it's own (yellow) div. The footer and the image are wrapped together in
one (grey) div.

What I want to achieve is the following.

o If the (red) main div is *smaller* than the (green) menu, the image
(yellow div, black image) should not overlap the (green) menu.

This works with the current stylesheet

o If the (red) main div is *larger* than the (green) menu, the (red) div
should overlap the (grey) div containing the footer and stuff (but not
not the (blue) copyright line)

This doesn't work.

I tried f.e. to set the margin-top attribute of the (grey) div to
-130px, then the (red) main div overlaps the (grey) div, but the
(yellow) image div may overlap the (green) menu.

Does anybody have an idea, what I could do to achieve my goals (should
work with up-to-date mozilla/IE)

best regards & thanks in advance
-- jochen


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.