The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › What happen with MARGIN
HTML
Please Login Here! Testing
CSS
#wrapper{ width: auto; min-width: 1024px; height: auto; min-height: 768px; }
#loginContainer{ width: auto; min-width: 1024px; height: 425px; border-top: 2px dashed #c2d2d7; border-bottom: 2px dashed #c2d2d7; margin-top: 50px; }
Problem:
The wrapper moved down by 50px.
You probably need to add ‘overflow:hidden’ to the wrapper css.
The problem, I believe is that the wrapper doesn’t have a specified height and so the ‘margin has nothing to push against except the whole ‘page’…or something like that.
But won’t the min-height set a “fixed” height already??
Btw, overflow hidden works tks!