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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:40:49+00:00 2026-06-05T15:40:49+00:00

By default, the ordered list looks like this: There are some spacing on the

  • 0

By default, the ordered list looks like this:

enter image description here

There are some spacing on the left hand side of the list. Is there any way to remove those spacing?

Here is what I want:

enter image description here

On my website, the font-family and font-size will be changed by users dynamically. Therefore I am not able to preset padding-left.

  • 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-05T15:40:52+00:00Added an answer on June 5, 2026 at 3:40 pm

    You should be able to use em for a scalable size (rather than fixed px sizing). This would allow scaling of the font size but match the scaled size when applying padding.

    ol { padding-left: 1.8em; }
    

    Here is a jsfiddle to illustrate. Change the body font-size to different scaled sizes (try 1em, 2em, etc.) and you’ll see the paragraph matches the ol on the left.

    You may find that browsers render at different sizes. 1.8em, works with Chrome, but it may require 1.6em or 1.9em for Firefox or IE. The thing with the web is it is fluid and scalable, so shooting for pixel precision, especially when working with user-scalable fonts is almost always a no-win situation.

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

Sidebar

Related Questions

By default nunit tests run alphabetically. Does anyone know of any way to set
I have a un-ordered list of links, each of which contains some text and
I need to bind the click function on each div of this ordered list
I need to test method which returns ordered List of some complex objects. Simplified
The default in Ruby on Rails is to have this set to false (in
By default, Apache 2.0.52 will respond to any HTTP TRACE request that it receives.
By default there is a single line separator in uitableview. But I want to
I need to get a list of customers and what they ordered out of
Is set of objects obtained with Entity Framework ordered by primary key by default?
I have an ordered list, but I want to number is manually in 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.