I want the menu to fully expand at 100% of the page width

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Hervé
Beginner
Beginner
Posts: 4
Joined: Tue Feb 15, 2005 1:38 pm
Location: Moncton (NB) - Canada

I want the menu to fully expand at 100% of the page width

Post by Hervé »

Hi.

I'm currently evaluating DHTML Menu (for buying purposes) ;)

First of all: this is the best DHTML Menu tool I've seen, I've evaluated 4 different products (including yours) and I'm just impressed by the ease of use of your tool.

I want the menu bar (horizontal) to be part of my page (yes I've read the FAQ and I use position="relative" for my main menu).

Now, I'd like the menu to enpand itself to 100% of the page width with the menu options at the left (as it is currently).

How can I do that ?

Thanks.
Hervé.
Hervé.
Hervé
Beginner
Beginner
Posts: 4
Joined: Tue Feb 15, 2005 1:38 pm
Location: Moncton (NB) - Canada

Post by Hervé »

Hi.

I have the answer to my question :)

<div style="background-color: #ECE9D8; border-width: 1px 0px 1px 0px;border-style:solid;">
<script type="text/javascript" src="../js/menu_data.js"></script>
</div>

Note: I test XP Style menu. I've removed borders around the menu to put them around my container et voilà !

The code is not clean. Of course I need to create a CSS class.

Ciao.
Hervé.
Hervé
Beginner
Beginner
Posts: 4
Joined: Tue Feb 15, 2005 1:38 pm
Location: Moncton (NB) - Canada

Post by Hervé »

Shame on me.

the property setmenuwidth answers my question.

Shame, shame, shame on me :oops:

http://milonic.com/menusample26.php
Hervé.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Herve,
:) So I'm not the only one who does that?

By the way, you shouldn't put the menu in a div. There can be cross browser issues if you do that, causing problems in some browsers.

Ruth
Hervé
Beginner
Beginner
Posts: 4
Joined: Tue Feb 15, 2005 1:38 pm
Location: Moncton (NB) - Canada

Post by Hervé »

Hi Ruth.

I did not know that there were cross-browser issues.
What kind of issue(s) ?

Anyway, I've removed the div tag and used the full possibilities of the tool, it's better. :D

Thanks.
Hervé.
Hervé.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

It's only when it's in a div that sometimes there are problems depending on the browser. Usually, it's position issues, if I remember correctly, position of submenus. I've seen posts about the menu doing this or that and it turns out it's because it was placed in a div.

Ruth
Post Reply