Dash in the list

The question was asked: 6 years 11 months ago   views: 19
0
the <h3>List</h3>
the <ul>
the <li>text</li>
the <li>text</li>
the <li>text</li>
</ul>

Example: text

How to do a normal dash in the list?

Asked: Hancock888 Hancock888 21-06-2012 в 13:24:06

Answers   2

0
ul {
 list-style: none;
}

ul li:before {
 content: "—";
 position: relative;
 left: -5px;
}

example

Answered: ivkremer ivkremer 21-06-2012 в 13:51:41
0
ul {
 list-style: none;
 margin: 0
}
ul li{
 position: relative;
}
ul li:before {
 content: "—";
 position: absolute;
 left: -18px;
}

A little change

Answered: Дмитрий Денисов Дмитрий Денисов 28-12-2016 в 16:56:56