V
V
Valery Pavlenko2018-01-30 21:55:00
css
Valery Pavlenko, 2018-01-30 21:55:00

How to remove the indent before the list?

Please, how to remove the indent from below after the paragraph, if it is followed by the ul list, but at the same time, so that the indent between the paragraphs remains?
Code :
https://jsfiddle.net/efendi/9udvaexf/3/

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2018-01-30
@trudogolik

https://jsfiddle.net/SAnhPa/9udvaexf/4/

E
Elwen, 2018-01-30
@Elwen

Option A:

p + ul {
    margin-top: -1em;
}

Option B:
p {
    color: #404040;
    margin: 0;
}
p + p {
    margin-top: 1em;
}
ul {
    margin: 0;
}

D
Daniil Popov, 2018-01-30
@groog

In your case
p + ul {
margin-top: -1em;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question