How to use hex value for bullet in CSS -
this question has answer here:
- adding html entities using css content 8 answers
im trying use hex value bullet in css mentioned here can use html entities in css “content” property?
note don't want use <li>
element show bullet
<table> <tr> <td> <span class="mybullet"/> <a href="#">link1</a> </td> </tr> </table> .mybullet { content:"\2022 "; color:#f00; }
however not working. here jsfiddle http://jsfiddle.net/kq2fzb2v/
use either :before
or :after
:
.mybullet:before { content: "\2022"; color: #f00; display: inline-block; }
.mybullet:before { content: "\2022"; color: #f00; }
<table> <tr> <td> <span class="mybullet" /> <a href="#">link1</a> </td> </tr> </table>
Comments
Post a Comment