N
N
Nikita Ivanov2015-11-21 18:09:28
css
Nikita Ivanov, 2015-11-21 18:09:28

Is it possible to move the list marker relative to the item itself in CSS?

The bottom line is this: site turbomuse.hol.es , at the bottom of the page there is a list called "The department conducts training:". Triangles are pictures of list markers. Each element of the list must start with a red line, and the marker must be near the beginning of the first line, i.e. actually above the second line. Can this be implemented in CSS?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry, 2015-11-21
@thewind

Background without repeat

I
Ivanq, 2015-11-21
@Ivanq

/* list-style-image - убираем */
background: url(маркер) no-repeat 0px 20px;
padding-left: 20px;
list-style-type: none; /* на всякий случай (c) */

I
IceJOKER, 2015-11-21
@IceJOKER

Frame the text in an liinline tag (for example span) and indicate to it position: relative; и top: -5px;or how much you need

A
Alexander Golubev, 2015-11-22
@Piocan-Alex

You need to fix the .tng ul li img - margin-right class , for example to 33px, and you will have a large margin.

.tng ul li img {
  margin-right: 5px;
    margin-bottom: -4px;
}

4d1a33740a6b4e6597851b10fc73fff3.PNG

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question