Reputation:
i am working on asp.net mvc 3 web application and i need to view a green Right sign and red Wrong sign inside my application without using images so is this possible?, as i have note on some web site they use different kind of signs but u can not downloaded as an image som this means thay are being displyed as text or using Java script ...? BR
Upvotes: 0
Views: 6601
Reputation: 2708
You can also try this. http://nicolasgallagher.com/pure-css-gui-icons/ if you want to avoid images.
Upvotes: 0
Reputation: 8393
Note, not all browsers support special characters like this but you could easily output the follow and have it work in most cases:
<p class='right'>✔</p>
<p class='wrong'>✖</p>
Related css:
.right {
color: green;
}
.wrong {
color: red;
}
Upvotes: 4
Reputation: 150228
You could have a look at Unicode Dingbats if you want to avoid images
http://en.wikipedia.org/wiki/Dingbat
For example:
✔ ✖
You can then just use CSS to apply an appropriate color.
Test them on browsers your user base is likely to use to make sure they render correctly (not all browsers support all Unicode characters).
Upvotes: 5