Jump to content

Horizontal menu with picture sprite


JustRob
 Share

Recommended Posts

Hello, I'm making a website with a picture sprite for the horizontal menubar. Meaning, both the "normal" and "hover" states in one big image, beneath each other. But I have a problem, obviously I still need to put text in between the <a> tags, but how do I make that text invisible so only the image is displayed? Right now if you click and hold and move your mouse over the menu the text is selected, which is something I do not want. I've done this in the past, on my website http://www.robbertbruggeman.nl/, but I can't figure out for the life of me how I did it back then.

Link to comment
Share on other sites

I have that:

.menubar a{	float: left;	display: block;	height: 100%;	text-align: center;	text-decoration: none;	color: #FFF;	width: 100%;	background: url(menu/menubar.png) no-repeat;}

But still no go. The text appears above the image.

Edited by JustRob
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...