Search code examples
cssglow

Text-shadow or similar effect to a <ul> bullet?


As the title says, I'm trying to find a way to add a text-shadow effect for a bullet. I'm using text-shadow to show a light glow behind some text, and I'd like to accomplish this same effect for bullets without having to create my own bullet image.


Solution

  • try this

    ul {
      list-style: none;
    }
    
    li:before {
      content: '\2022';
      padding: 10px;
      text-shadow: 1px 1px 2px red;
    }
    

    http://jsbin.com/apoviv/2/edit

    UPD: You really can use unicode charachtest for special symbols this is quite tricky but there is good article which can help http://css-tricks.com/css-content/