I'm trying to center the text in my nav bar (categories).

I've tried text-align and various other options but nothing seems to be working.

My site is www.lifemaxuk.co.uk

Can someone have a look and please help as this is driving me mad!


  • Maybe this answer can help you: stackoverflow.com/questions/2865380/…
    – Robin
    Commented Mar 11, 2015 at 15:45
  • Do you want to remove the second line or what is the purpose?
    – seb
    Commented Mar 11, 2015 at 15:53
  • I want to center all the text so that the two categories on the second line are in the middle. Commented Mar 11, 2015 at 16:30

1 Answer 1


The a-element is already centered in the li-element. So if you want to center the text in your blue nav you should change the css like this:

ul {

li a,
li {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.