October 5, 201016 yr Hi I have a menu with some links and also a background image that's as wide as widest link. so how should I style a:hover declaration that the background shrinks from its center and both sides of it is shown for narrow links anyway? background image is like this : Regards...
October 5, 201016 yr Use a sliding doors effect, cut he image in half and do something like this with the css. .nav li { background:url(right-bg.png) right no-repeat; width:100px; text-align:center; } .nav li a { background:url(leftt-bg.png) left no-repeat; }
October 5, 201016 yr Author Use a sliding doors effect, cut he image in half and do something like this with the css. .nav li { background:url(right-bg.png) right no-repeat; width:100px; text-align:center; } .nav li a { background:url(leftt-bg.png) left no-repeat; } Thanks for quick reply may I use your trick for "mouse over" only? How?
October 5, 201016 yr Sure it works for a hover state too I've used it, it just means you'll need to make two images for your tab each in a different colour then slice them both. This will explain in more detail how to do it http://www.alistapart.com/articles/slidingdoors/
October 13, 201016 yr Sure it works for a hover state too I've used it, it just earnings you'll need to build two images for your tab each in a different colour then slice them both.
Create an account or sign in to comment