Summyyiah Posted July 1, 2012 Share Posted July 1, 2012 Hi Guys, i found this CSS, but i am unable to understand this 0 -32px; What is this for? #menu li a:hover { color: #26370A; background: url(menu1.gif) 0 -32px; padding: 8px 0 0 10px; plz help! Link to comment Share on other sites More sharing options...
dsonesuk Posted July 1, 2012 Share Posted July 1, 2012 move background image to left at 0 pixels, and up by -32 pixels from current position, If you had sprite image (64px height image that has normal state image at top and hover state at bottom 32 + 32) when the user hovers over the anchor element a:hover, move the background image up by 32px(-32px) to show hover state of image. Link to comment Share on other sites More sharing options...
Summyyiah Posted July 1, 2012 Author Share Posted July 1, 2012 ok..understood... Thanks:) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now