tags:

views:

28

answers:

4

Setting the background image is clear, but how do i set the position for the background-image?

+1  A: 

The background-position property, e.g.

background-position:top right;
James
A: 

background-position

Pekka
A: 

Or you could use shorthand to set everything at the same time!

background:#ffffff url('/images/background.jpg') top right no-repeat;

Dov
+1  A: 

if you want a background image with no-repeat positioned 10px to the right and 20px from the top

{ backgroud: url(path to image) no-repeat 10px 20px; }

you can use negative values for the position too, eg. -10px to move it 10px to the left

pixeltocode