Center align items within horizontal menu (4 posts)

  1. The Painted Hive
    Posted 4 years ago #

    I am just learning CSS and am having trouble getting the items (text) aligned properly within my horizontal menus. I can achieve it using padding though have discovered this is not cross browser compatible. I have read a few tutorials though am unsure how/where to implement the "margin:auto" and "text-align" properties in my code:

    (please ignore the messiness - like I said, I'm just practising)

    [CSS code moderated - just post a link to your site - or use the pastebin for any code over the forum limit of 10 lines]

    Any help would be appreciated. At the moment it's all looking like gobbledygook to me.

  2. WordPress is not the place to learn CSS in general. We can help you fix your theme (which is much easier if you link to your site).

  3. The Painted Hive
    Posted 4 years ago #

    Sorry, my site is only hosted locally for now so I can't provide a link. I will try some other forums elsewhere.

  4. The Painted Hive
    Posted 3 years ago #

    Finally worked this out. Here's a great tutorial:

Topic Closed

This topic has been closed to new replies.

About this Topic