contextMenu.js
contextMenu.js copied to clipboard
Separator line between items
Hi,
Some solution to put a line separator between some items ?
Thanks for advance.
Carles
You can put className property (if you are using a object to generate menu) or simply add a class on the items you want to put seperator and than you give specific css style to those elements.
s-yadav,
And i can obtain results like this -> http://swisnl.github.io/jQuery-contextMenu/index.html
Thanks. Carles.
Yes you can.
What css style would you use? All menu items have lines between them and I need to remove them where I don't want separators, otherwise my separators won't stand out. I'm specifying the className of menu items and using this css:
.menuseparator { border-top: none; border-bottom: none; }
but it has no effect.
Alternatively to try to create a separator I've tried using height:1px, but that only reduces the height down to about 10 pixels for some reason, so it's not much good.