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

option to center the container #1

Closed
opetznick opened this issue Sep 23, 2012 · 5 comments
Closed

option to center the container #1

opetznick opened this issue Sep 23, 2012 · 5 comments
Labels

Comments

@opetznick
Copy link

hi there

first of all - awesome plugin! second.. is there any way to horizontal center the used container?

thanks in advance
oliver

@yconst
Copy link
Owner

yconst commented Sep 27, 2012

Hi oliver, thanks for the comment, if you use force width for the container then you can just do in css:

margin-left: auto;
margin-right: auto;

@atran
Copy link

atran commented Oct 13, 2012

Is there a scoreFunction that can do this? It'd be great to be able to have a centered container with variable width.

@gavacho
Copy link

gavacho commented Oct 17, 2012

@atran: I've been able to achieve this with the forceWidth and containerWidthStep options.

@yconst yconst closed this as completed Oct 22, 2012
@Mgamerz
Copy link

Mgamerz commented Jan 2, 2015

I know this is ancient but can someone share their working centering code? I have some things that are being tiled but don't have enough content to even fill the width of the container (just depends on what's there at the time)... it looks terrible with everything on the left and I don't want a fixed width container.

@Dacius
Copy link

Dacius commented Oct 30, 2015

Please don't close those issues without giving an example or documenting the used options.

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

No branches or pull requests

6 participants