E
E
Egor S2015-10-09 21:05:07
css
Egor S, 2015-10-09 21:05:07

How to properly get rid of the horizontal list indent?

codepen.io/mortyyy/pen/rOwqrW
It is necessary that there is no indent between the .profile block and the menu items. It's unclear where it comes from.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GoodProject, 2015-10-09
@mortyyyy

nav ul li {
margin-right: -4px;
}
The indent appears due to inline display, this is such a feature, so you need to do it through float: left, or subtract 4px, or set the font to font-size: 0 inside this block, and where you need to increase the font to the standard one (which was the default ) that is, outside the fz0 block, but inside what is already needed, so that indents do not appear like yours.

I
Ivanq, 2015-10-09
@Ivanq

Give the ul margin: 8px (exactly 8, because your layout is crooked)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question