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

Remove gap between each block/widget #453

Closed
damerakiran opened this issue May 26, 2016 · 5 comments
Closed

Remove gap between each block/widget #453

damerakiran opened this issue May 26, 2016 · 5 comments

Comments

@damerakiran
Copy link

can u please any one tell me how can i remove gap between each block.

thanks in advance

@ekomsctr
Copy link

For the vertical gap between lines, just set in the grid options verticalMargin: 0, meanwhile for the gap between items on the same line you have to set the css properties "left" and "right" of the class "grid-stack-item-content" to 0px, or just remove the class.

@radiolips
Copy link
Member

Thanks for resolving this, @ekomsctr. If there's any further issue, @damerakiran, please let us know.

@ajlorido
Copy link

ajlorido commented Jun 27, 2018

Hello, where exactly must this vertical margin be set?
Maybe you mean margin-top?

@dearsina
Copy link

Hello, where exactly must this vertical margin be set?
Maybe you mean margin-top?

You set it as an option. I can't seem to find it in the documentation, but it's still (version 2.0.2) a valid option:

GridStack.init({
        verticalMargin: 0,
});

@adumesny
Copy link
Member

adumesny commented Oct 28, 2020

no, in 2.x it's called margin and apply in code to both... as opposed to css vs code which was a mess. #723

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

6 participants