CSS3 PIE Forums

Interesting - top margins and ie6
Page 1 of 1

Author:  lnrb0b [ Mon Jul 19, 2010 10:38 am ]
Post subject:  Interesting - top margins and ie6

Hi all,

Found an interesting issue:
Whenever I have an element with 'margin-top:x' (where x > 1px) as the first element in a rounded container with padding-top and a border there is a gap at the bottom between the background color and the border.
Not sure why this is happening, looking at the shapes with the dev toolbar they have equal heights. Example code below:

<div style="background:#fff;border:solid 1px #000;border-radius:4px;behavior:url(PIE.htc);padding-top:10px;">
  <h1 style="margin-top:10px;">Example</h1>

Any ideas appreciated!

edited to be more specific about padding

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group