I have a navigation bar with multiple tabs. When the screen size is reduced, these tabs disappear and are condensed into a clickable button called navbar-collapse
, which expands to display the tabs in a vertical orientation. I managed to center the elements in the dropdown using text-align: center
, but this alignment does not apply to the tabs when the navigation bar is full-size. Is there a way to center the tabs both in full-size view and on mobile devices (in the dropdown)? Here's the JSFiddle link for reference: http://jsfiddle.net/sushiknives/c1zjbrmj/
A quick note about the JSFiddle: you will need to drag the result page far left to see how it would appear in full-size.