Improve css3 text rotation quality
I've created a series of rounded tabs using CSS3. I've then rotated these tabs, but the quality of the text (Windows - Chrome) is poor and also 'dims/blurs' on transition. What are the alternatives? Have I applied my CSS correctly? Would I be better to rotate the tabs and keep the text horizontal?
Chrome doesn't enable anti-aliasing by default. But you can add this CSS property to your elements in order to enable it:
This will force the browser to use its hardware acceleration to calculate the transforms, which will add some anti-aliasing as a bonus.
The same effect could also be applied by setting the
Here is your updated jsfiddle (tested in Chrome)
Firefox enables anti-aliasing by default so no transform3d hack is required, but the quality of the anti-aliasign algorithm varies among the browser version. Here are some comparison images:
Those are Firefox 5, Firefox 9 and Chrome respectively.
Your best bet here is to tweak your font in order to make it more friendly to the anti-aliasing algorithm. In this case, choosing a bolder and bigger font might help.
This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here