-1

I am new to CSS/HTML, if I want to set bullets to user defined chars like #, |, >..etc

How can I do that in CSS is any property available or any solution for such context

 <ul>
    <li></li>
 </ul>
Ganesh Vellanki
  • 412
  • 8
  • 18

1 Answers1

3

You can use pseudo-element :before and define the content you want e.g.:

ul {
   list-style: none;
}

ul li:before {
   content: "#";
   padding-right: 5px;
}
 <ul>
    <li>test</li>
 </ul>

Ref

:before

Alex Char
  • 32,879
  • 9
  • 49
  • 70