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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:48:09+00:00 2026-06-18T07:48:09+00:00

I have a list that resembles: <ol> <li class=node>1</li> <li class=node>2</li> <li class=node>3</li> <li

  • 0

I have a list that resembles:

<ol>
    <li class="node">1</li>
    <li class="node">2</li>
    <li class="node">3</li>
    <li class="node">4</li>
    <li class="node_end">5</li>
</ol>

I am using images to replace their default bullet points in CSS. Separate images are used for the end node as well as another image for all other bullet points. The images display, however as soon as I add these images a 4 pixel padding is somehow added to the top and bottom of each list item. This extra spacing changes the height from 26 pixels high to 34 pixels high. This gap provides about an 8 pixel separation between the different bullet point images which were meant to have a 0px separation as per my design.

The CSS I made:

li {
    margin: 0;
    padding: 0;
    border: 0;
}
li.node {
    list-style-image: url('../imgs/nodes/udr.png');
}
li.node_end {
    list-style-image: url('../imgs/nodes/ur.png');
}

Is there any way to remove this spacing? I have tried removing all things padding/spacing/border related to all li’s, but nothing so far.

EDIT:

I do not think I am making my question clear enough, so I am posting the image of what it looks like on my end.

Example of what the problem is.

The joining bars as you see in the image above are supposed to be connected (as if one continuous image). Removing the special CSS images for bullet points reduces the height of each item to the height of the CSS bullet point image (as I have tested using Google Chrome’s element inspecting tool).

EDIT 2:

A close example to show my problem can be found here: http://jsfiddle.net/EyVRF/1/

  • 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-18T07:48:10+00:00Added an answer on June 18, 2026 at 7:48 am

    lack of .css and html unable me to answer you.
    About : Is there any way to remove this spacing? YES there is.

    try this :

    ol, li{list-style-position:outside;margin:0;padding:0}
    

    or

    ol, li{list-style-position:inside;margin:0;padding:0}
    

    Let me guess ? You didn’t reset your .css ?? (margin:0;padding:0)


    Ok, i can see what you want .. and sadly, you wont be able to achieve what you want this way becose the ‘padding in between the bullet and first character is ‘browser-specific’ and unmanagable through css.

    You will have to use another technique : background image.

    <ul>
        <li class="node">1</li>
        <li class="node">2</li>
        <li class="node">3</li>
        <li class="node">4</li>
        <li class="node_end">5</li>
    </ul>
    
    ul, li {
        margin: 0;
        padding: 0;
    }
    li {
        font-size:16px;
        line-height:16px;
        list-style-type:none;
        background:red url('http://placehold.it/16x16') no-repeat scroll 0 0;
        padding-left:16px;
        border-bottom:1px solid blue;
    }
    li.node_end {
        background:blue url('http://placehold.it/16x16') no-repeat scroll 0 0;
    }
    

    http://jsfiddle.net/2RtB7/1/

    Carry on

    PS, try to search a little more before asking for help –> CSS: Control space between bullet and <li>

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

Sidebar

Related Questions

I have a list that I need to fill using a JSON collection of
in Android, I have list that I fill using the following code @Override public
I have a list that contains 10**7 lists in the format: big_list = [[1,
I have a list that looks like this: l1 = ['200:200', '90:728'] I have
I have a list that has two items: projects and groups. Projects can go
I have a list that I am trying to fill with numbers from a
I have a list that I want to loop through (for trimtemp in trim)
I have a List that contains items, for example: 1) https:\\10.12.23\\ 2) https:\\12.23.12.25\\ 3)
I have one list that I want to take a slice of, reverse that
I have a list that I need to send through a URL to a

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.