Top Menu width??

Where dose the top menu get it's width property from?  I'm trying to override the element.style 998px

I added a width  of 600px  to the table.topMenu in the top menu css but it isn't working.

Give me something to believe in...
Quote · 13 Feb 2011

It gets it setting from the other page width in the page builders. But changing that may also effect other pages.

So to allow CSS to override it, you can do this.

Edit templates/base/scripts/BxBaseMenu.php

Look for this at about line 149

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


Remove the width setting. Make it look like this.

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

https://www.deanbassett.com
Quote · 13 Feb 2011

That's exactly what I was looking for, thank you deano. Now I remember that's how  i did it before. Unfortunately my work got deleted and I didn't keep any notes.Tongue out

Give me something to believe in...
Quote · 13 Feb 2011
 
 
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.