sys_top_menu div name

Can anyone tell me what table or div the sys_top_menu is held in?

Quote · 19 Feb 2010

I do not understand the question. The top menu is in a div with a defined class of sys_top_menu

So i am confused as to what you are asking.

https://www.deanbassett.com
Quote · 19 Feb 2010

I am looking to alter the width of sys_top_menu items on my page but cna't seem to find out where that value is held.  So the end result is that the nav menu is wider than the page below it.

Quote · 19 Feb 2010

Each item on the top menu has it's width set by code. The overall width of the table the top menu items reside in, and each menu item is done by code so it adjusts to match the width the pages are set to.

It's supposed to be automatic. So yours must be malfunctioning.



One of my earilier posts might help.

http://www.boonex.com/unity/forums/#topic/Top-Menu-Question-.htm

You may also want to check in your page builder to see if any of the pages and the other page setting are all the same. Maybe one of them is messing up the code calculations.

https://www.deanbassett.com
Quote · 19 Feb 2010

No I want to make it stretch out if possible.

Quote · 19 Feb 2010

The table it's in has it width generated by code here. templates\base\scripts\BxBaseMenu.php


At about line 164 you will find this.

function genTopHeader() {
$iCurrent = $this->checkShowCurSub() ? 0 : $this->aMenuInfo['currentTop'];
$this->sCode .= '<table class="topMenu" cellpadding="0" cellspacing="0" style="width:' . $this->sWidth . '"><tr>';
}


If you change it to this.

function genTopHeader() {
$iCurrent = $this->checkShowCurSub() ? 0 : $this->aMenuInfo['currentTop'];
$this->sCode .= '<table class="topMenu" cellpadding="0" cellspacing="0" width="100%"><tr>';
}


That should set it to 100%

Or you can set it to any width you want.

https://www.deanbassett.com
Quote · 19 Feb 2010

Thank you very much deano!

Quote · 19 Feb 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.