1
How can I change the list-style-type Bullet to a fontawesome icon?
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
ul#a {
list-style-position: inside;
list-style-type: square;
}
ul#b{
list-style-image: url('css/sqpurple.gif');
list-style-position: inside;
}
ol#c {
list-style-type: upper-roman;
}
ol#d {
list-style-type: lower-alpha;
}
li::before{content: "<i class="fa fa-hand-o-right" aria-hidden="true"></i>";}
ul::after{
list-style-type: none;
/*content: "<i class="fa fa-hand-o-right" aria-hidden="true"></i>";*/
/*content: "-";*/
}
li::before {
content: "- ";
}
</style>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<p><i class="fa fa-hand-o-right" aria-hidden="true"></i>
</p><p><ul><li> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas </li><li> lobortis nisi eu risus molestie rutrum. Phasellus et facilisis tellus.
</li><li> Nullam a urna est. Suspendisse convallis, enim et viverra volutpat, mauris dui malesuada libero, et pretium sem mauris et ex. Aenean sodales nibh et quam semper, nec feugiat leo dapibus.
</li></ul>
<ul id='a'><li>Curabitur sollicitudin eget odio eu accumsan.
</li><li> In quis elit auctor, aliquam nisl vel, dignissim risus.
</li><li> Duis posuere sed dui et accumsan. Etiam pharetra sapien non velit consequat, eget ultrices neque porta.
</li></ul>
<ul id='b'><li> In mattis erat diam, eu tempor velit pharetra sed.
</li><li> Pellentesque convallis libero ut sagittis bibendum.
</li><li> Ut laoreet lacus libero, eleifend accumsan ante fermentum sit amet.
</li><li> Quisque tristique hendrerit pellentesque.
</li><li> Mauris magna justo, auctor sit amet risus ac, dignissim efficitur ante. Donec nec pretium urna.
</li></ul>
<ol id="c">
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ol>
<ol id="d">
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ol>
</body>
</html>
And how do I find the code of the icons?
– britodfbr
@britodfbr just included a Link with all the icon on the official website look there
– hugocsl
Thank you very much!!! D
– britodfbr
@britodfbr was worth young, any problem is just talk, but I already use it for a long time and always works 100%
– hugocsl