cssqq Posted January 13, 2011 Share Posted January 13, 2011 I got a setup like this... +++++++++++++++++++ + FLOAT + <--- Div with float +++++++++++++++++++ ++++++++++++++++++++ + FLOAT DIV FLOAT DIV + <--- Div with 2 floats ++++++++++++++++++++ The div with 2 floats has a negative top margin of -24px... the div follows the top margin... the floats inside the div drop below the float at the top. Why? please help!!! Link to comment https://forums.phpfreaks.com/topic/224281-css-float-overlap/ Share on other sites More sharing options...
raknjak Posted January 13, 2011 Share Posted January 13, 2011 It would be so much easier to see your markup. Link to comment https://forums.phpfreaks.com/topic/224281-css-float-overlap/#findComment-1158872 Share on other sites More sharing options...
fortnox007 Posted January 13, 2011 Share Posted January 13, 2011 Quote I got a setup like this... +++++++++++++++++++ + FLOAT + <--- Div with float +++++++++++++++++++ ++++++++++++++++++++ + FLOAT DIV FLOAT DIV + <--- Div with 2 floats ++++++++++++++++++++ The div with 2 floats has a negative top margin of -24px... the div follows the top margin... the floats inside the div drop below the float at the top. Why? please help!!! I like to see your code to, but since i like puzzles. Maybe because they are all following the normal flow of the document. Maybe try to give your bottom div a position absolute and make the z-index higher than the top one. Make sure thought the top div is positioned relative or anything other than static otherwise your bottom div will get sucked to the top of the screen. Link to comment https://forums.phpfreaks.com/topic/224281-css-float-overlap/#findComment-1159103 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.