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

  • Home
  • SEARCH
  • 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 6939235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:35:47+00:00 2026-05-27T12:35:47+00:00

I have a CSS/HTML list that is using an image as the background and

  • 0

I have a CSS/HTML list that is using an image as the background and a different image when the mouse is hovered over.

The only problem is that the hover image doesn’t line up correctly and has a small but noticable gap.

I have placed a link to a test version to help you to see exactly what I mean.

I am also using Blueprint CSS as a CSS framework.
The source code is below.

As always, thanks in advance

#navbar{
background-image: url('../images/navbar.png');
color: white;
font: 20px arial,sans-serif;
height: 45px;
}
#navbar a{
color: white;
text-decoration: none;
}

#navbar ul{ 
list-style: none;
margin:0;
padding:0;
}

#navbar li{
border-right: solid 1px white;
display: inline-block;
height: 45px;
line-height: 45px;
padding-bottom:  1px;
padding-left: 10px;
padding-right: 10px;
padding-top: 1px; 
}

#navbar li:hover{
background-image: url('../images/navbar-selected.png'); 
background-repeat: repeat-x;
 }  

<div class="container" id="container">
    <div class="prepend-top">
        <div class="clear" id="navbar">
            <ul>
                <li><a href="index.php">Home</a></li>
                <li><a href="stock.php">Start HaardHout Vergikelleen</a></li>
                <li><a href="overview.php">In Jouw Regio</a></li>
            </ul>   
        </div>  
    </div>
</div>
  • 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-27T12:35:47+00:00Added an answer on May 27, 2026 at 12:35 pm

    Set float: left; for your li elements.

    #navbar li { float:left; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a navigation bar/list that is using only HTML and CSS. The background
I have a simple HTML/CSS list that is displayed inline. I am using a
I have a strange problem working with HTML,CSS in different browsers: Firefox 3.6 and
It is advisable to use tables in HTML pages (now that we have CSS)?
I have html and css as below - .title { display: block; background-color: red;
I have the following html/css that is causing problems in Firefox 1.5 and 2,
This is probably a basic html/css question... I have a simple one-button form that
Im using this .sortable function on my list. My problem is that I want
I have a navigation that I made using CSS Sprites. The thing is I
CSS & html id0 is the class for the div that's got background as

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.