views:

221

answers:

4
+1  A: 
background-position: right bottom; 

should do the trick.

Reference: CSS background-position Property

xpos ypos - The first value is the horizontal position and the second value is the vertical. The top left corner is 0 0. Units can be pixels (0px 0px) or any other CSS units. If you only specify one value, the other value will be 50%. You can mix % and positions

Pekka
+1  A: 

background-position: bottom right should indeed do what you describe.

If you want the image to stick to the bottom-right of the viewport rather than the document, you will have to add background-attachment: fixed. There are problems with this in IE, but when used on the main body/html background it's fine.

bobince
+2  A: 

Works fine for me:

body
{ 
background-image:url('smiley.gif');
background-repeat:no-repeat;
background-attachment:fixed;
background-position:bottom right; 
}

And if the picture is big enough the no-repeat isn't needed. (Works even in IE6).

Traingamer
I think `background-attachment:fixed;` is what did it.
Ben Shelock
A: 

maybe you forgot

background-position: absolute
dfens