You have two ways you could approach this:
The text-align: center Method
.ut-nav-tabs li { display: inline-block; float: none; vertical-align: top; } .ut-nav-tabs li:last-child { margin-right: 0px; } .ut-nav-tabs { text-align: center; }
This works only if you declare text-align: center on the containing parent - the parent element must be a block element. The nested children elements must be inline block elements (e.g: display: inline-block) with no float rules declared on them, floats will negate any attempt to horizontally center align elements this way, and most other ways.
The display: flex Method
.ut-nav-tabs { display: flex; justify-content: space-around; } .ut-nav-tabs li { float: none; margin-right: 0px; }
This is the "new kid" on the block and the "hot fix" for any alignment issue concerning CSS these days, I would hazard to say it is the "jQuery" of CSS now. Anyway, it is for good reason, flex-box rules allows you to specify general alignment (horizontally and vertically) and lets the browser do all the calculations for precise positioning - this is also why is a popular responsive solution too.
Browser Compatibility: A heads-up though, flex-box has poor or very limited support for legacy browsers, older browsers may give you unexpected results, so you should use this with caution in production code if that will be a concern.
.ut-nav-tabs{display:flex;justify-content:center;}.ut-nav-tabs li {margin:0 1px;}?