...

View Full Version : relative div wont stay at top



josh dyos
07-01-2010, 11:57 AM
hi im having trouble with a container div. When i put the container around my other divs they all move down by 15px and right by 10px. I know relative divs are supposed to move but i dont want a gap at the top between the div and the browser.

all margins / padding / border etc set to zero

please help

abduraooft
07-01-2010, 01:02 PM
I know relative divs are supposed to move but i dont want a gap at the top between the div and the browser.

all margins / padding / border etc set to zero

please help Seems like the collapsible margin 'bug'. Seehttp://complexspiral.com/publications/uncollapsing-margins/ (adding overflow:auto; to the container would be an easy fix!)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum