views:

261

answers:

1
+1  A: 

That's because you are setting a negative distance that gives you a piece in the middle of the first background. If you use a position like -250px you will get closer, but to get it exact you have to either set a fixed width on the link or use an image where the desired background is at the right edge.

Guffa
oh i checked it with a negetive margin too. The result is unfortunatly the same. It's right that the solution works with right. But in this case I need for ervery right corners a special row and my wish was to have for erery color one row and for ervery right corner one special position, where I can find the correct corner.When I read the specification of CSS Backgroundposition I thought, that I can give a negative value to reach the right corner. But it seem, that this dosen't work. unfortunatly. Maybe someone know an other solution. But thank you, for your answer.
Lara Röpnack
@Lara: Even if you use a negative position, it's still the position for the left edge of the element. If you don't want to specify a width for the element, the only background position that you can use to specify the right edge is "right". So, the only solution if you don't want to specify a width, is to rearrange the image so that you get all the right edges at the right edge of the image.
Guffa