| Creating CSS menu / hover using single image |
CREATE CSS MENU - HOVER SINGLE IMAGE |
| We will use the following image to create hover effect. The dimensions of this image are 974px X 200px. Basically, this is more of a code snippet than a tutorial. One thing to remember is the a:hover background position. You have to go on adding the width of a single piano ( which in this case is 97px ) for every subsequent hover. |
![]() |
The HTML code |
<ul> |
The CSS code |
| <style> ul, li { list-style-type: none; margin:0; padding:0; } ul { position: absolute; left: 50px; top: 50px; background: transparent url(piano.jpg) top left no-repeat; height: 200px; width: 487px; text-align: center; border: 1px solid #555; } li { display: inline; } li a { |
| Hope you have enjoyed this tutorial on creating horizontal menu in CSS using single image for hover effect. SEE THE MENU IN ACTION |
About Us :
We are a Mumbai ( India ) based webdesigning company. The recent changes
in web design standards has brought in lots of misunderstandings
and misconceptions. The idea behind the web 2.0 standardisation .... read the complete article
We use following tools / packages and technologies for creating
client websites.
Contact Us :
Contact us for webdesign , logo and brochure designing work.