Forums
View unanswered posts | View active topics It is currently Fri Oct 24, 2014 2:30 pm



Reply to topic  [ 1 post ] 
 Interesting - top margins and ie6 
Author Message

Joined: Fri Jul 16, 2010 3:35 am
Posts: 9
Post 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:

Code:
<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>
</div>


Any ideas appreciated!
~S

edited to be more specific about padding


Mon Jul 19, 2010 10:38 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.