Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By TheGAME1264

Thread: Need to center horizontal nav bar

  1. #1
    Junior Member
    Join Date
    Sep 2015
    Posts
    4
    Member #
    52003

    Need to center horizontal nav bar

    Can someone please help me center the horizontal nav bar for my website?

    Webpage:
    Simply a Christian Home

    CSS:
    http://www.simply-a-christian.com/style.css

    Now that I think of it, this may be a problem since Bluehost (my web host) is down.

    I compressed the index.html page and the style.css file and attached them to this post.

    Your assistance is greatly appreciated.

    (P.S. I am willing to pay $15 or perhaps a little more if someone is willing to assist me.)

    index-html-and-style-css.zip

  2.  

  3. #2
    Senior Member
    Join Date
    Feb 2006
    Posts
    800
    Member #
    12463
    Liked
    296 times

  4. #3
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    1) Take the floats off your nav ul (line 148 in your style.css) and nav ul li (line 166 in your style.css).
    2) Set your nav ul li display to inline-block.
    3) The second step will give you some weird spaces between your li elements. You can fix them by removing any white space between them, like this:
    <li>Your nav item and any subitems</li><li>Your next nav item</li> <-- notice the lack of space between the </li> and <li>.

    Three special steps, that's all you'll need.
    Three special steps, and you'll succeed.

    (Yes, I just quoted Special Agent Oso).
    H3br3wHamm3r81 likes this.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  5. #4
    Junior Member
    Join Date
    Sep 2015
    Posts
    4
    Member #
    52003
    I tried that, but it didn't seem to work. Sent you e-mail.

  6. #5
    Junior Member
    Join Date
    Jan 2017
    Location
    ahemadabad
    Posts
    9
    Member #
    55990
    Liked
    1 times
    Hi,
    i see your website text-align:center is not proper work on it but if you decrease your font sizr:12px and add margin 8% on both left and side side then your nav bar in center.
    other solution is you decrease padding in menu list then also possible.

    Thanks,
    sonvi.belani


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Tags for this Thread

All times are GMT -6. The time now is 03:14 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com