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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:05:35+00:00 2026-06-03T22:05:35+00:00

I have an unordered list inside a div with a background image for each

  • 0

I have an unordered list inside a div with a background image for each list item. However, the list is not appearing correctly in Internet Explorer 8.

Rendered Output http://img694.imageshack.us/img694/7204/screenshotjv.jpg

The problem is there is too much space to the left and top of the list. As well as between each list item. I want the list to be completely flush with the image section above it so there’s no white space on the left, top, or between each item.

HTML:

<div id="top">
    <div id="topimage">
        <center>
            <img src="image.jpg" alt="image"/>
        </center>
    </div>
    <ul class="list">
        <li>Item 1</li>
        <li>Item 2</li>
        <li>Item 3</li>
    </ul>
</div>

CSS:

#top { 
    width: 255px; 
    float:left; 
    margin:3px; 
}

#topimage {
    width: 245px;
    border:1px solid #bcc5c8;
    padding:3px;
}

.list li {
    background-image:url(../images/list_sub.jpg);
    width: 245px;
    height:23px;
    list-style:inside;
    list-style-image:url(../images/listarrow.gif);
    margin:0px;
    padding:0px;
}

I’ve tried setting the margin and padding to zero, but that didn’t work. I’ve also checked to make sure the images don’t have extra space around them. Any suggestions?

  • 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-06-03T22:05:36+00:00Added an answer on June 3, 2026 at 10:05 pm

    Here are some things you can adjust:

    1. Wrap your list item contents in spans and apply the list item arrow to the spans instead, give the span a padding-left value slightly larger than the arrow gif’s width.

    2. Don’t use the list-style-image property, just specify a list-style: none; to get left alignment x-browser. Generally you should just use the background image property for list items instead of the list-style-image, but since you have a background image for li’s too, you need the extra span.

    3. Don’t apply padding to the same elements you apply widths and heights. They will not render cross-browser. Instead specify width/height on a parent element and padding on an inner wrapper element.

    4. generally you should avoid id rules, they are heavily specific and result in non-reusable style definitions. They make overriding the style definition difficult.

    5. To make the list items touch each other, make sure the line-height specified on them is equal to or less than the height of the elements. I think the list-item-style will fix it, but double check this setting too.

    If that doesn’t fix your problem, post a link to the background images and I’ll mock up a small example.

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

Sidebar

Related Questions

I have an unordered list with each list item background changing color when the
I have an unordered list with several divs contained inside. Each list item is
I'm making a vertical unordered block list (inside a div), in which I have
I have an unordered list and each of the item in the ul has
I have an unordered list with five list items, each with a link inside
I have unordered list inside a div. I use it to create buttons in
I have an unordered list of items, I want to display each item as
I have an unordered list, with a couple list-items inside. Inside each of those
I have created an unordered list inside a div which is absolutely positioned. When
I have a div with an unordered list inside that slides left when you

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.