View Full Version : Positioning background using pixels


photoshopbunnie
05-31-2004, 10:52 PM
OK so I need my bg pic to be positioned in pixels. this is the code I'm usng. Anyone know why it's not working? The image just appears in the corner. body
{
background-image:
url("http://img31.photobucket.com/albums/v92/daytripper/popmecherry.jpg");
background-repeat:
no-repeat;
background-position:left:110px; top:144px;
background-attachment:
fixed;}

salomeyasobko
05-31-2004, 10:55 PM
well first of all you have the bold part:

{
background-image:
url("http://img31.photobucket.com/albums/v92/daytripper/popmecherry.jpg");
background-repeat:
no-repeat;
background-position:
position:relative;
left:110px; top:144px;
background-attachment:
fixed;}

and you didn't put anything for that.. you didn't even add a ; to move on to the next thing.. second of all, i don't think you can use the position: relative thing for background images.. you'd have to do this:

background-position: # of pixels from the top number of pixels from the left

:)

photoshopbunnie
06-01-2004, 07:22 PM
Oh thanks! I'm silly *slaps self* :) :)

salomeyasobko
06-01-2004, 07:44 PM
you're welcome! :D