GeekedOut
GeekedOut

Reputation: 17185

Is it possible to make a star like StackOverflow has on the left side of questions using only css?

I would like to have something similar on my site like the follow/favorite question functionality on StackOverflow.

I am just wondering if it is possible to make a 5-side star with only css, or I need to use an image?

Thanks!

Upvotes: 2

Views: 122

Answers (2)

Waiting for Dev...
Waiting for Dev...

Reputation: 13037

Look at this page! It draws as well stars, but using browser-specific properties, so not standard and not very recommendable.

http://css-tricks.com/examples/ShapesOfCSS/

The only standard way I can thought is using HTML5 Canvas, but I think it's a lot of pain and a lot easier is using an image, and it's not only CSS.

Upvotes: 1

Tony Bogdanov
Tony Bogdanov

Reputation: 7696

Even if it is possible it would involve CSS3 and probably canvas. Since they are supported only by the new versions of the modern browsers (even IE9 support is at question), it is in my opinion best to go with good old images.

You have nothing to lose by using images, and you can be sure that 95% of the browsers will support it.

Upvotes: 5

Related Questions