Skip to main content
KMacL
Inspiring
Mar 13, 2017 10:47 AM UTC
Answered

How do I use an IMAGE for the main menu and BLOCK for sub menu items

I have used images for my main menu items and cascading block for the sub items.  The main menu items show the images I want, but with the colour block behind them, which I don't want.  How do I make the block on the main menu invisible, or remove it completely, without it affecting the sub menu colours and hovers?

This topic is closed to new replies. Start a new post to keep the conversation going.
KMacL
KMacLCorrect answer
Inspiring
Mar 13, 2017 11:28 AM UTC

I worked it out, thank you! I removed the colour and border from the navbar anchor and put it in the submenu anchors instead. Always the obvious! Thank you for your help.

5 replies

Nancy OShea
Community Expert
Community Expert
Mar 13, 2017 5:25 PM UTC

Just so you know, image based navigation is awkward for several reasons.

     #1 When you edit your site, you must create all new menu images each time.  After doing this 3 or 4 times, you'll soon grow to hate your menus and stop updating them.

     #2 Image based menus are not web friendly. 

          - They cannot be indexed by search engines.

          - They cannot be translated.

          - They often look very blurry/pixelated on hi density devices.

In the long run, it's  much easier for everyone if you use real text for menus and style them to look like buttons or whatever with custom CSS code.

Nancy

Translate
Nancy O'Shea— Product User & Community Expert
KMacL
KMacLAuthorCorrect answer
Inspiring
Mar 13, 2017 11:28 AM UTC

I worked it out, thank you! I removed the colour and border from the navbar anchor and put it in the submenu anchors instead. Always the obvious! Thank you for your help.

Translate
B i r n o u
Legend
Mar 13, 2017 12:15 PM UTC

cool

Translate
KMacL
KMacLAuthor
Inspiring
Mar 13, 2017 11:25 AM UTC

But that will make them all transparent... no? I only want to make the main menu bar invisible, not the sub menu lists. 

Translate
B i r n o u
Legend
Mar 13, 2017 11:02 AM UTC

did you try background-color: transparent;

Translate