K
K
Kir Shatrov2010-12-26 12:28:13
css
Kir Shatrov, 2010-12-26 12:28:13

Spacing between list items?

iempire.ru/untitled.html
Why do indents appear between inline elements? How to remove them?
margin: 0, display:inline-block don't help in any way.
It is not recommended to use float...

Answer the question

In order to leave comments, you need to log in

5 answer(s)
[
[email protected]><e, 2010-12-26
@RazoR_Empire

If you want to keep the code readable, you can set the ul to font-size:0 (and maybe something else in the same category) and restore it for the li.

N
nikel303, 2010-12-26
@nikel303

Don't put spaces between [/li][li]

A
almazmusic, 2010-12-26
@almazmusic

On average, a gap at 12-13 points is 4 pixels, and I usually do a margin-right: -4px. It also helps everywhere.

M
MT, 2010-12-27
@MTonly

<ul
  ><li>первый элемент</li
  ><li>второй</li
></ul>

A
Anonim_Khb, 2016-03-06
@Anonim_Khb

Instead of:

<ul>
        <li>Something text 1</li>
        <li>Something text 2</li>
    </ul>

We do this:
<ul>
        <li>Something text 1
        <li>Something text 2
    </ul>

So remove the indents and avoid "crutches".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question