PDA

View Full Version : Gah, image won't move to the left >.<



Excellent2
10-11-2008, 06:50 PM
Hey. I'm coding a layout for UniqueHabbo and I've ran into a little problem!

http://img.skitch.com/20081110-duxayunw6fx5ebm7g3nbegtyg1.png
Where you see the Hello Sir text on the orange image I need the image to be moved to the left a few pixels. I've tried margin-right: 5px; but it just won't budge to the left, but yet if I do margin-left: it'll move the image to the left? :S

Heres the CSS for that particular image:

#header {
background-image: url(images/header.gif);
width: 997px;
height: 29px;
margin-right: 5px;
}
Thanks.

L?KE
10-11-2008, 07:00 PM
Lucas, you can us minus numbers in margins, so margin-left: -5px; pulls it towards the left.

Excellent2
10-11-2008, 07:04 PM
Lucas, you can us minus numbers in margins, so margin-left: -5px; pulls it towards the left.Thankyou lovely :) I knew you could use minuses but I've never used them before so I didn't think of it haha. +rep :)

Want to hide these adverts? Register an account for free!