Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Main menu image buttons
#1
Hello,
I would like to replace text link + css by an image for the main menu ?
Is it possible ? and How ?

Regards,
Reply
#2
Every link in the menu that GetSimple generates has its own class. You could use CSS with your favourite image replacement technique to give each link in the main menu an image and hide the text.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#3
hello.
I use the <?php menu_master (); ?> function.
And when I edit the html source code I don't see the class of each link...
is it normal ? Is it somewhere to setup this class ?
thanks
Reply
#4
another question ...
If I hide the text ... How can I click the link ?
The "li" is not clickable whithout link :'-(
Reply
#5
you hide the text like so:

li a {display:block;text-indent:-9999px;}

the link (a) is then expanded to take up the whole li element. When you hide the text using text-indent, the text gets thrown way off screen, but the clickable a:href is still there inside the LI as a block element.
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#6
Thanks !
Ok ! It's working (on firefox) !
But is it ok with all browsers ? Did you test this tip with IE6 for example ?
Reply
#7
A negative text-indent to hide text from browsers has been around for years now. You’ll find it works on every CSS supporting browser around these days.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply




Users browsing this thread: 1 Guest(s)