N
N
Nick Bukovskiy2018-02-08 12:45:28
css
Nick Bukovskiy, 2018-02-08 12:45:28

How to arrange li in one line and so that they occupy completely one line?

There are 5 li that need to be placed in one line without indents, just in one line for the entire width of the block?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly, 2018-02-08
@sonterix

ul{
font-size:0;
}
ul li{
font-size:14px;
display:inline-block;
width:20%;
margin:0;
padding:0;
}

A
Anton, 2018-02-08
@karminski

ul {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
}
li {
    position: relative;
    margin: 0;
    padding: 0;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question