View unanswered posts | View active topics It is currently Fri Dec 06, 2019 3:22 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:

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

Any ideas appreciated!

edited to be more specific about padding

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

Who is online

Users browsing this forum: No registered users and 3 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.