Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

css

glow

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.

like image 522
ejfrancis Avatar asked Dec 21 '12 22:12

ejfrancis


1 Answers

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/

like image 173
dmi3y Avatar answered Oct 08 '22 17:10

dmi3y