Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

Reply To: Centering Main for Desktop ?.

Home Forums Older releases 1.0.x Centering Main for Desktop ?. Reply To: Centering Main for Desktop ?.

#9118
admin
Keymaster

Hi, not sure why you consider this a hack. It’s actually the proper way to center a block element – i.e. constraining its (max-)width and setting the left/right margin to auto.

If you are too worried about some of your items wrapping at lower viewport widths, you could consider the following solution:

https://www.smartmenus.org/about/themes/#demos-7

but I personally don’t think that is a critical issue since all items remain usable even if some of them are wrapped.