Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making a star with html

Tags:

html

css

I'm creating a script and want to make the featured listings appear with a star right next to the listing, like here, cardealerscript.com/demo/

Although it works in some browsers, it does not work in mobile browsers.

I would like to keep it in html though, I dont want to use images.

Can anybody suggest another way to keep the star in html? I'm using this ★ at the moment.

Thanks Anton

like image 441
Sarah Avatar asked Dec 04 '22 12:12

Sarah


2 Answers

★

black star from http://www.quackit.com/html/html_special_characters.cfm

Alternatively you can base64 encode whatever start you want and use that in css.

like image 91
vector Avatar answered Feb 14 '23 02:02

vector


I like font-awesome for this stuff:

http://fortawesome.github.com/Font-Awesome/

like image 20
Tucker Avatar answered Feb 14 '23 03:02

Tucker