css - margin-bottom a bit of a cross browser grey area -


when use margin-bottom css, results vary across browsers (esp lovely ie) impacts css property "margin" other rules need check i've implemented before can see consistent result across browsers...

some browsers (ie) collapse margins. doesn't affect bottom margin, top.

if have 2 stacked elements, both margin of margin: 10px 0 15px;, might think there 25px of space between two. however, ie collapses margins that's left greatest margin (which 15px in example above).

as helping ensure browsers display things consistently, place start reset stylesheet (eric meyer's or yui's example).


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -