M
M
MRcracker2018-05-14 02:29:17
css
MRcracker, 2018-05-14 02:29:17

How to replace dots in a list with a font icon?

How to make a bulleted list have a FontAwesome font icon instead of dots?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2018-05-14
@alexr64

htmlbook.ru/css/list-style-image

P
profesor08, 2018-05-14
@profesor08

ul {
  list-style: none;

  li {
    &:before {
      content: "ǘ"
      font-family: "FontIcon";
      font-size: 20px;
      position: absolute;
      top: 50%;
      transform: translate(-150%, -50%);
    }
  }
}

H
hiddenseek, 2018-11-29
@hiddenseek

li:before {    
font-family: 'FontAwesome';
content: '\f12a';
margin:0 5px 0 -15px;
    color: #7ebf52;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question