I want to create a cool looking yet simple exclamation mark with just CSS. Anyone have any cool ideas?
You could find a font that has a very unique "!" and use the Font Squirrel @font-face generator and choose expert settings with custom subsettings and only include the ! character for the font.
Add the font to your stack as the first font and it will only render for the !
For this example I chose Heartbreaker Regular as the font and created an @font-face kit.
The specimen which is falling back to Helvetica for everything except the !.
I like the font-squirrel suggestion - very neat! This will also work using Cufon, which some people may be more familiar with.
If you are using a jQuery or other toolkit on the page you can search and replace the exclamation marks with something else, e.g. wrap a class around them. Then you can do a Cufon.now on that class.
From there on you can put in some animations, title tags, whacky any-thing - however - bear in mind that exclamation marks are generally best used sparingly! Except in the offices of the Exclamation Mark Liberation Front! (I made that last bit up! But you get the idea !?!?!!?)
Google fonts is your answer. The only thing you need to do (besides loading google fonts in your HTML file) is to give it a style.
Besides that, it is way faster then sifr, @font-face, cufon etc. plus with the font-viewer you can see different fonts really quick.
To give it a little edge you can always a a shadow in CSS.
You can create a simple exclamation mark using pure CSS + HTML markup:
The span's CSS will do the work.
It's not the best looking exclamation mark, but you can play with CSS3's border-radius property, border-width and gradients as backgrounds to get a much better look. Creativity is the limit.