WordPress.org

Ready to get started?Download WordPress

Forums

Center align items within horizontal menu (4 posts)

  1. The Painted Hive
    Member
    Posted 2 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.
    Thanks

  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
    Member
    Posted 2 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
    Member
    Posted 1 year ago #

    Finally worked this out. Here's a great tutorial:
    http://www.visibilityinherit.com/code/center-nav.php

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags