Hello all,
This week I was making some experiences with jQuery and CSS3; for various reasons in the last few months I was not working intensively with html/css and feel I needed some updates. I tried jQuery for the first time – I was using mootools, but jQuery will be more useful to me now – and tried some new features of CSS3, like @font-face. I can imagine a lot of websites on the future using Helveticas
.
I fond this nice and smooth accordion using jQuery; accordion can be a pain, particularly if your using the default ones of jQuery or those created with Sprys on Dreamweaver.
And now @font-face: this is an exciting new feature of CSS that will certainly change the way designers build websites. @font-face is working in Firefox 3.5, Opera 10 and Safari 3.1+. Chrome doesn’t support this feature – yet – and IE is a special case (why are we not surprised?). Microsoft developed their own implementation of this, using a proprietary Embedded Open Type (.eot) format. In fact, this is working since IE 5. If you want to use @font-face on IE, you must encode your .ttf or .otf. There are some converters from .ttf to .eot, and from .otf to eot – some of them free, some of them paid. The small example I made is not working with .eot because i couldn’t find a free converter. Any suggestion is welcome
There is, however, a problem with IE rendering .eot fonts: the anti-alias is terrible. In fact, it seems there is no anti-alias at all.
You can see my example here; please note that older browsers may not display the new CSS3 features:
http://www.sara-coutinho.com/labsdemo/jquery_css3/
I also tried the new multi-column text option and it seems to be working perfectly. In the example it has a “matrix” effect because the text is inside the accordion and resizing when it moves.
You can find more about CSS3 here.
Hope you find this useful!