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 6204673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:08:16+00:00 2026-05-24T05:08:16+00:00

I want to achieve, that both layers the li elements are positioned horizontally like

  • 0

I want to achieve, that both layers the li elements are positioned horizontally

like this:

Case 1 (user hovers Home):

Home / Kontakt

Home-Sub1 / Home_Sub2

Case 2 (user hovers kontakt):

Home / Kontakt

Kontakt_Sub1 / Kontakt_Sub / Kontakt_Sub3

The css code of my navigation:

#navigation ul.menu {
    list-style-type:none;
    list-style:none;
    /*overflow:hidden;*/
    width:980px;
}
#navigation ul li.expanded {
    list-style:none;
    list-style-type:none;
    padding:0;
    float:left;
    display:inline;
    height:32px;
}
#navigation ul.menu {
    width:100%;
    height:32px;
    border-bottom: 1px solid #cecbcd;
}
/* style list as navigation using float:left */
#navigation ul.menu li {
    padding:0;
    float:left;
    display:inline;
    height:32px;
    position:relative;
}
/* set distance from left corner to the first li item */
#navigation ul.menu li:first-child {
    margin-left:150px;
}
#navigation ul.menu li ul li:first-child {
    margin-left:0px;
}
#navigation ul.menu li ul {
    display:none;
    position:absolute;
    top:2em; 
    left: 1em; 
    float:left; 
    border:none;
}
#navigation ul.menu li:hover ul {
    display:block;
}
#navigation ul.menu li ul li {
    display:inline;
    background-image:none;
}
#navigation ul.menu li a {
    /*background-color:#ffffff; */
    font: 12pt/24pt 'SansumiRegular', Arial, sans-serif;
    text-decoration:none;
    color: #666666;
    height: 32px;
    background-image:none;
    display:block;
    padding-left:5px;
    padding-right:5px;
    float: left;
}
#navigation ul.menu li ul li a {
    /*background-color:#ffffff; */
    font: 12pt/24pt 'SansumiRegular', Arial, sans-serif;
    text-decoration:none;
    color: #666666;
    height: 32px;
    background-image:none;
    display:block;
    padding-left:5px;
    padding-right:5px;
    float: left;
}
#navigation ul.menu li ul li a:hover,
#navigation ul.menu li ul li.active-trail a.active-trail {
    /*background-color:#ffffff; */
    font: 12pt/24pt 'SansumiRegular', Arial, sans-serif;
    text-decoration:underline;
    color: #666666;
    height: 32px;
    background-image:none;
    display:block;
    padding-left:5px;
    padding-right:5px;
    float: left;
}
#navigation ul.menu li a:hover {
    font: 12pt/24pt 'SansumiRegular', Arial, sans-serif;
    text-decoration:none;
    color: #ffffff;
    height: 32px;
    background-image:url('../images/navi_active.png');
    background-position:center;
    background-repeat:no-repeat;
}
#navigation ul.menu li a.active,
#navigation ul.menu li.active-trail a.active-trail {
    font: 12pt/24pt 'SansumiRegular', Arial, sans-serif;
    text-decoration:none;
    color: #ffffff;
    height: 32px;
    background-image:url('../images/navi_active.png');
    background-position:center;
    background-repeat:no-repeat;
}
  • 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-24T05:08:19+00:00Added an answer on May 24, 2026 at 5:08 am

    use float:left or display:inline to style an li like this:

    ul li {
      float: left;
    }
    

    OR

    ul li {
        display: inline; 
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to achieve the functionality that this editor has got with its preview
I want to achieve something like this in C# 3.5: public void Register<T>() :
I want to achieve something like this inside a UIView: I have created a
What i am trying to achieve is that i want a user to signup
I want to achieve something like the following: UrlBuilder ub = new UrlBuilder(http://www.google.com/search); ub.Parameters.Add(q,request);
I want to achieve this using html and css: I have tried to set
I want to achieve this: private static InputStream getTokenCfg() { String cfg = MessageFormat.format(
I have this restfull service that I want to be able to call for
This might be really tricky! Here is what i want to achieve: Here is
I want to code/debug collaboratively on a shared linux terminal (so that both parties

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.