Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:45

Headers


Poster: jshep
Dated: Saturday April 30 2005 - 19:26:40 BST

Is it possibe to define menuheaders with the listbased menu? If so could I see an example?

Thanks

Jim


Poster: Ruth
Dated: Sunday May 1 2005 - 9:32:07 BST

Hi Jim,

Well, the only thing I could get it to do was put a 'header' type item in the list base not in the menu itself. It seems that, if it doesn't have an href related to it either linking to a page or a submenu, the item won't appear in the actual Milonic Menu. So, if you want it in the list, this is how I did it. I declared a class style in the head of the html page
Code:
.header {
  font-family: Verdana, Tahoma, Arial;
  font-weight: bold;
  text-size:16px;
  background-color:#ff0000;
  color: #016701;
}
Then I put this as the first 'list' item
Code:
<ul><li><span class="header">Group One</span>
As I said, that only puts the 'non' link item in the listmenu on the page, not in the Milonic Menu.

Since I'm not very conversant with lists or doing css styles or the programming of the menu, that's about all I can give you. It may be that the menu cannot distinguish a header item in a listbased menu. Though it may be possible to write a javascript for that. However, I have no idea just how involved such an undertaking would be.

Ruth