hello everyone,
i recently saw a few nice examples with the CSS content attribute in order to achieve nice symbols and drawings, however when searching for a complete list of the symbols available i couldn’t find any, and i wondered if anyone here knows where i can find such a list where i can see all (or some) of the symbols that i can create using this property
I got another question related to this, i see many of these stuff requires font that i dont have, therefore i belive many others dont so i dont want to put such a thing in a website and take risk
point is that i want to use unicode so that the ‘image’ im going to put will be affected by fonts (which will not happen with acutall image), so i wondered if there’s any way around it to get the symbols i want?
If you don’t have the correct Unicode font stack and the user doesn’t have any of those fonts then the symbol probably won’t render as expected perhaps showing a place-holder. Perhaps CSS font embedding might have effect if it were normal text and you had the font licence but it’s probably overkill.
thank u for ur reply
unfortunately i just noticed another downside with using the content attribute, its not supported from IE7 and below! that blows
is there any alternative to the CSS content attribute?
You shouldn’t really be using generated content for important content so it shouldn’t really matter. Generated content should enhance the page but not reduce its function if not present.
You can fix IE with a quick expression if you want.
I use content in replacement of small images, like facebook / twitter logos, also using them in order to style lists better
Its critical because IE is already ugly enough when it doesnt have support for many stuff (like rounded borders / shadows), so also content, its like 2 different websites when looking through chrome / IE7
I dont care much for IE6 acutally, but i still want to fix it for IE7 snce its still used around (specially by XP users)
Thanks for ur solution ill try it out now
edit: hmm can u explain how that expression works to me ?