Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separator line between items #21

Open
carles9000 opened this issue Dec 11, 2015 · 4 comments
Open

Separator line between items #21

carles9000 opened this issue Dec 11, 2015 · 4 comments

Comments

@carles9000
Copy link

Hi,

Some solution to put a line separator between some items ?

Thanks for advance.

Carles

@s-yadav
Copy link
Owner

s-yadav commented Dec 11, 2015

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.

@carles9000
Copy link
Author

s-yadav,

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

Thanks.
Carles.

@s-yadav
Copy link
Owner

s-yadav commented Dec 11, 2015

Yes you can.

@Arbuxy
Copy link

Arbuxy commented Jul 3, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants