contextMenu.js icon indicating copy to clipboard operation
contextMenu.js copied to clipboard

Separator line between items

Open carles9000 opened this issue 9 years ago • 4 comments

Hi,

Some solution to put a line separator between some items ?

Thanks for advance.

Carles

carles9000 avatar Dec 11 '15 10:12 carles9000

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 avatar Dec 11 '15 13:12 s-yadav

s-yadav,

And i can obtain results like this -> http://swisnl.github.io/jQuery-contextMenu/index.html

Thanks. Carles.

carles9000 avatar Dec 11 '15 13:12 carles9000

Yes you can.

s-yadav avatar Dec 11 '15 14:12 s-yadav

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.

Arbuxy avatar Jul 03 '17 17:07 Arbuxy