I have a div that contains a link:
<div id="like_bar"><a href="#" onclick="return false;" id="like"></a></div>
With some CSS:
#like_bar{
width:140px;
height:26px;
background:url('bar.jpg');
}
#like{
display:block;
width:20px;
height:20px;
margin:3px 36px;
background:url('mini_img.png');
}
The link is placed at the top of the bar and the margins on the link are applied to the bar.
This is annoying.
Could someone explain these collapsing margins, how to avoid them and what they're used for.