Je ne peux pas enlever padding adjacent à un lien dans this pagecss - Comment supprimer le remplissage à côté des liens adjacents?
J'ai réduit le problème au strict minimum, donc c'est vraiment clair.
Je pourrais essayer de forcer la largeur de la div mais je veux savoir pourquoi avoir deux éléments côte à côte rend le total plus large que la somme des parties.
Vous pouvez voir mon problème ici http://www.yart.com.au/stackoverflow/adjacent_a.pngalt text http://www.yart.com.au/stackoverflow/adjacent_a.png
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<style type="text/css">
*
{
padding:0;
margin:0;
font:15px arial;
}
div
{
display :inline;
background-color:Red;
height:18px;
}
.MenuItemMove
{
display:inline-block;
background-image: url(http://www.yart.com.au/stackoverflow/page_move.gif);
background-repeat:no-repeat;
width:18px;
height:18px;
vertical-align:top;
}
</style>
</head>
<body>
<div>
<a href="#" class="MenuItemMove"></a>
<a href="#" class="MenuItemMove"></a>
</div>
</body>
</html>