View Full Version : Aligning Background Image

12-27-2006, 09:13 AM
Can I give the left margin to background image in CSS ?

12-27-2006, 10:25 AM
Hello Uzair,
I don't know if it's really margin but you can sure position it. Have a look at an example (http://www.nopeople.com/backgrnd_img_position/) I made.

12-27-2006, 10:31 AM
Why did write "background-image" twice ???
Also tell me how can I give it different distance from right, bottom or top ???
I mean... top: 50px; left: 100px; right: 10px; bottom 3px etc etc...

12-27-2006, 10:52 AM
Hmm, one didn't work and I forgot to delete it.

Made the div bigger... play around with it and see what moves it the way you want.