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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:25:07+00:00 2026-05-29T04:25:07+00:00

to me this is really weird, i have this menu: <!DOCTYPE html> <html> <head>

  • 0

to me this is really weird, i have this menu:

    <!DOCTYPE html>
    <html>
    <head>
        <style type="text/css">
            div.menu{text-align:right;}
            div.menu ul{
                list-style:none;
                display:inline;
            }
            div.menu li{
                position:relative;
                display:inline;
                background:#434343;
                padding:8px 12px;
                line-height: 32px;
                margin:0;
                border-left:1px #000 solid;
            }
        </style>
    </head>
    <body>

<div class="menu">
    <ul>
        <li></li>
        <li> </li>
        <li></li>
        <li>Hi</li>
        <li>Hello </li>
        <li></li>
    </ul>
</div>
    </body>
    </html>

i’m using the latest chrome and firefox 3.6 for testing

there are 6 li but only 5 are shown, a space inside the li causes it not to be rendered
if there’s a text inside it causes a 4px space

“hi” has a space after, “hello ” doesn’t

adding anchors inside the li causes the same behaviour

   <li><a href="#">Link</a></li>

has a space after

   <li><a href="#">Link</a> </li>

doesn’t

adding
div.menu li a:after{content:” “;}
in the code would solve the problem apparently but if you look closely the elements will appear wider except the last one

any help?

thank you

  • 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-29T04:25:10+00:00Added an answer on May 29, 2026 at 4:25 am
        div.menu{text-align:right;}
        div.menu ul{
            float:right;
    ...
        }
        div.menu li{
            float:left;
    ...
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a really weird problem that I have been having. When I download
Ok, this is a really weird one. I have an MPI program, where each
Can anyone explain why using comments like this in css cause really weird effects
I have this really weird bug at my page. I wrote this comment system
This is a really weird problem: I have set up the authlogic_openid_selector_example app .
This is really weird and can't seem to understand it. I have a header
Ok, this is really really weird. I have the following simple regex search pattern
I have this really weird bug. When I scroll down my table view, down
I have this really weird problem with my MySQL table. After some time a
I have this really weird problem in my code (.Net Framework 3.5). So, in

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.