Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4531880
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T13:57:31+00:00 2026-05-21T13:57:31+00:00

I need the menu (home, portfolio, services, about) is aligned in the middle and

  • 0
  1. I need the menu (home, portfolio, services, about) is aligned in the middle and left.
  2. The div#header-login should be flush right

How can I accomplish these tasks?

To solve the first problem, I put the divs with display: inline; but for some reason the ul#header-menu is leaving a space at the top

To solve the second problem, I tried to put the div#header-login with 100% width and thus align the text to the right but failed.

Here is the complete code:

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T13:57:32+00:00Added an answer on May 21, 2026 at 1:57 pm

    The easiest way to achieve this is to make sure you float everything in the header. With the current mix of some float and some non-float (plus some elements with display:inline), this will be tricky to manage and potentially problematic if you need this to work in older versions of Internet Explorer.

    I’ve made a few small modifications to your jsFiddle. This now floats the 3 elements in the header and applies float clearing to the header div itself so that the content after the header clears properly (there are also commented examples of how you’d need to do this for the IEs with conditional stylesheets).

    http://jsfiddle.net/y4Qyw/1/

    I’ve not tweaked the spacing specifically, but it should be a formality now to position everything where you want with some padding and/or margin. Automatic vertical positioning in this situation isn’t possible unless you’re working with display:table-cell (which isn’t entirely cross browser), so you’ll just need to vertically offset your menu downward to get it centre-aligned.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have five menu items Home, About us, Archives, Services, Contact us they
I need to add submenu to Appearance menu at WordPress like Background, Header, etc.
I need to create a home screen (menu) with four to six items arranged
I have this menu: <div id=menu-home> <ul> <li> a </li> </ul> </div> When I
So i have this menu, this is the structure: <div id=menu-home> <ul> <li> a.active
I need to link to Login.cshtml page from Home.cshtml and it can't seem to
I have http://mysite.com/index.php . And a sub menu home => http://mysite.com/index.php about us =>
I have a menu: <ul class=menu> <li><div class=home></div> Home</li> <li><div class=forum></div> Forum</li> <li><div class=music></div>
I added home menu into my app and i need to menu text to
i have this site: www.yoursdproperty.com i need the top menu items HOME, BUYING PROPERTY,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.