This project is read-only.

Centralise the top nav Items on the Top Nav Menu in bootstrap.

Dec 16, 2014 at 12:37 PM
Hi,

I am using bootstrap 3 on SharePoint and I managed to centralise the Top Navigation container but the Items start from the left to right. However I need them to be centralised. Also note that I use the out of the box top navigation form SharePoint as I need to it to be dynamic.
Whatever I tried on CSS didn't centralise the menu.
Any help is appreciated!

Thanks
Dec 18, 2014 at 7:47 PM
Have you tried margin: 0px auto; for the navigation container? You might need to tell the main nav bar to we full width using display: block; but then a child container could have margin: 0px auto; to center that specific block within the navigation bar itself.

Eric
Dec 22, 2014 at 3:56 PM
i think for consistency make sure you use "important!" on the css too, for example margin:0px auto important!. this helps alot.