Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 04:49:39 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155544 Posts in 21714 Topics by 7736 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Menu button background image wont display in full  (Read 754 times)
dimlaz

Offline Offline

Posts: 5


« on: January 18, 2011, 10:44:25 AM »

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.
Logged
PurpleEdge

Offline Offline

Posts: 232



WWW
« Reply #1 on: January 19, 2011, 12:00:16 AM »

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)
Logged
dimlaz

Offline Offline

Posts: 5


« Reply #2 on: January 19, 2011, 10:13:46 AM »

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
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!