WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Menu button background image wont display in full
  • Print
Pages: [1]   Go Down

Author Topic: Menu button background image wont display in full  (Read 4531 times)

Offline dimlaz

  • Posts: 11
Menu button background image wont display in full
« 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.

[gelöscht durch Administrator]
Logged

Offline PurpleEdge

  • Posts: 231
  • Gender: Male
    • the northern beaches
Re: Menu button background image wont display in full
« 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

Offline dimlaz

  • Posts: 11
Re: Menu button background image wont display in full
« 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

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Menu button background image wont display in full
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2