• Resolved Dani

    (@danicasati)


    How can I remove left padding that is applied automatically to ALL lists?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor zymeth25

    (@zymeth25)

    Browsers will generaly apply left padding to <ul> and <ol> elements. You can avoid it by applying the following CSS on the list element:

    
    padding: 0;
    list-style-position: inside;
    
    Thread Starter Dani

    (@danicasati)

    I’m using this code:

    .ul, .ol {
    padding: 0;
    list-style-position: inside;
    }

    Same padding problem.

    Plugin Contributor zymeth25

    (@zymeth25)

    Remove the dots before ul and ol

    Thread Starter Dani

    (@danicasati)

    Did it.
    Same problem.

    Plugin Contributor zymeth25

    (@zymeth25)

    Ok then, try this:

    padding: 0 !important;
    list-style-position: inside !important;

    If this doesn’t work it means there is some other CSS code on your page that overrides list styles. You would then have to find that code and either change or delete it.

    Thread Starter Dani

    (@danicasati)

    Same problem.
    I can’t remove padding from LCP listings.

    Plugin Contributor zymeth25

    (@zymeth25)

    Ah, one more thing I forgot about. Set padding: 0; on <li> as well.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Remove left padding’ is closed to new replies.