WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Menu button background image wont display in full

(1/1)

dimlaz:
Hello all,

I'm having a problem with the menu background image, it does not display in full. (ie cover menu item, see attached picture)

My original index.html file looks like this:

<div id="templatemo_menu">
                   <div id="templatemo_menu_bg_ l"></div>
                    <div id="templatemo_menu_bg_ r">
                       <ul>
                      <li class="current"><a href="#" ><b>MAIN PAGE</b></a></li>
                       <li><a href="#"><b>ABOUT US</b></a></li>
                       <li><a href="#"><b>OUR SERVICES</b></a></li>
                       <li><a href="#"><b>OUR SOLUTIONS</b></a></li>   
                       <li><a href="#"><b>CONTACT US</b></a></li>   
                   </ul>

I replaced the above with this:

<div id="templatemo_menu">
                   <div id="templatemo_menu_bg_ l"></div>
                    <div id="templatemo_menu_bg_ r">
                       <b><?php  show_menu(); ?></b>

The backround image on each menu item wont display properly see attached pic.

Since I am new to this thanks for any help.

[gelöscht durch Administrator]

PurpleEdge:
What does the generated code look like when you open the page now?

Your original code had a div LI class called "current", the menu generated by show_menu() has lots of other classes in there too.

(show_menu2 is a better option and it is the default menu for the current releases of WB so you should probably use that)

dimlaz:
Hello

I used showmenu2() and by looking at the generated code each time I changed the parameters I go it to work.

Thank you very much for your time and reply

Navigation

[0] Message Index

Go to full version