ul li {
list-style-type: '-';
}
<ul>
<li>Mapping of Product</li>
</ul>
This is my code. After this, I get markers like it's shown in the image below
So I want to have a margin between "-" and text, but the margin does not work properly.
ul li {
list-style-type: '-';
}
<ul>
<li>Mapping of Product</li>
</ul>
This is my code. After this, I get markers like it's shown in the image below
So I want to have a margin between "-" and text, but the margin does not work properly.
Its not a margin between the list-style-type and the text. It is the padding-left that controls it.
ul li {
list-style-type: '-';
padding-left: 20px;
}
<ul>
<li>Mapping of Product</li>
</ul>
Just include a space after the - (within the quotes):
ul li {
list-style-type: '- ';
}
<ul>
<li>Mapping of Product</li>
<li>Mapping of Product</li>
<li>Mapping of Product</li>
</ul>