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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:47:49+00:00 2026-05-23T19:47:49+00:00

I am working on a project and having trouble with my UL>LI style. i

  • 0

I am working on a project and having trouble with my UL>LI style.

i am trying to put images all over the list and i want when i hover over the link the image color change so i use 2 images

1 orange &
1 blue

but i am unable to centrise the images over top navigation links.

enter image description here

the codes are :

HTML:

<div id="TopMenu">
    <ul style="display:">
        <li class="HeaderLiveChat" style="display:none"></li>
        <li class="First" style="display:">
            <a href="/account.php">My Account</a>
        </li>
        <li style="display:">
            <a href="/orderstatus.php">Order Status</a>
        </li>
        <li style="display:">
            <a href="/wishlist.php">Wish Lists</a>
        </li>
        <li>
            <a href="/giftcertificates.php">Gift Certificates</a>
        </li>
        <li class="CartLink" style="display:">
            <a href="/cart.php">
        </li>
        <li style="display:">
        <div>
            <a onclick="" href="/login.php">Sign in</a>
            or
            <a onclick="" href="/login.php?action=create_account">Create an account</a>
        </div>
        </li>
    </ul>
    <br class="Clear">
</div>

CSS:

/* Top Navigational Menu */
#TopMenu {
    position: absolute;
    right: 10px;
    top: 70px;
    font-size: 10px;
    text-align: right;
}

#TopMenu ul, #TopMenu li {
    list-style: none;
    padding: 0;
    margin: 0;
}

#TopMenu ul li {
    display: inline;
    list-style-image: none;
    list-style-position: outside;
    list-style-type: none;
    margin: 0px;
    padding: 0px 4px 0 6px;
}

#TopMenu ul li.First {
    border-left: 0;
}

#TopMenu ul li.home {
    background:url('http://cdn1.iconfinder.com/data/icons/munich/16x16/home.png') no-repeat;
    height:16px; width:16px;
}

#TopMenu a {
    color: #333;
}

#TopMenu a:hover, #TopMenu a:visited {
    color: #333;
}

#TopMenu li div {
    display: inline;
}

Please kindly help me to solve this

NOTE:

I want changed icon over each link, the above image is just an example image

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-23T19:47:50+00:00Added an answer on May 23, 2026 at 7:47 pm

    Made two changes

    1. Added a top padding of 25px to li for the image

      #TopMenu ul li {
      display: inline;
      list-style-image: none;
      list-style-position: outside;
      list-style-type: none;
      margin: 0px;
      padding: 25px 4px 0 6px;
      }
      
    2. changed the logos background-position:center; ( Please note that I have used short hand notation )

      #TopMenu ul li.home {
      background:url('http://cdn1.iconfinder.com/data/icons/munich/16x16/home.png') no-repeat center;
      height:16px; width:16px;
      }
      #TopMenu ul li.home:hover {
      background:url('http://cdn1.iconfinder.com/data/icons/cologne/16x16/home.png') no-repeat center;
      }
      

    Working Demo : http://jsfiddle.net/naveen/HuTge/1/

    P.S: Please note that I am using #TopMenu and markdown is not working properly.

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

Sidebar

Related Questions

I am having trouble trying to put in data for this project I'm working
I'm working on a project I inherited and I'm having some trouble. In my
I'm having trouble getting the tutorial project working. I've placed it under homedir/Spotify/Tutorial In
I'm Working on a project that uses ARC and I am having trouble with
I'm working on a fairly low-key, low budget project that's having trouble issues with
I'm working on my computing project for school, and I'm having trouble getting anything
I'm working on a linux C project and I'm having trouble working with file
I am working on a project that creates excel files. I am having trouble
I am working on this school project and I am having trouble getting my
I'm stuck! xD I've been working on a Rails project and am having trouble

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.