How to use hex value for bullet in CSS -


this question has answer here:

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

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -