views:

18

answers:

2

Basically I want to put a transparent image in the bottom-right corner. I read the questions about top-right, right, and so on. However, I can only apply margin-top: 100%; which will put it where I want BUT it shows the scroll bar then and the picture will be really at the bottom, I can't even see it.

Any ideas are welcome.


To see what I mean. >> http://noob.hu/2010/06/19/alignment.jpg

+1  A: 

Try

right: 0px;
bottom: 0px;

Of course you'll need fixed positioning:

position: fixed;

This will make it stick to the bottom-right corner wherever the user scrolls.

MvanGeest
Puts it to the left, immediately after the content ends. :/
Shiki
Even with fixed positioning? Can you post some HTML or a link to your page? Is it in an iframe?
MvanGeest
Works with fixed. Ty. :) | (5 more min until I can accept it. Well.. got another problem with css but I don't even know how to ask it. Maybe I should gather some CSS expert on MSN ? :))
Shiki
You're welcome. For more info, read http://www.w3schools.com/css/css_positioning.asp. I don't use MSN :)
MvanGeest
But please do try to write down your question. If you know how to formulate it, you can search for the answer. And in some rare cases, asking a question answers it.
MvanGeest
Honestly, I tried. First I checked Google and then the CSS site. Didn't manage to find it (My google-fu failed once again). Thanks again.
Shiki
A: 

Do it like:

background-image:url('someurl/image.png');
background-position:right bottom;
background-repeat:no-repeat;

Grz, Kris.

XIII
Applied to the `<body>` element. Could work!
MvanGeest
Sorry Kris I already use a background (repeat, etc). Thanks for the suggestion though, greatly appreciated.
Shiki
You could still put it as a background image of a div you have placed around the rest of your html when needed and give width and height 100%. That would also be a valid solution I think.
XIII