Multi-column text support in HTML/JS AIR Applications

Filed under: AIR, JavaScript

comments (0) Views: 4,664

As I continue my research into AIR development, I'm constantly finding things that I wasn't aware. For instance, did you know that WebKit engine has support for multi-column text? What's that you say? Think newspapers and you're right on track. WebKit gives us the ability to specify two new properties in our CSS and BAM, we have multi-column text. Even better is that the version of WebKit used in Adobe AIR also supports multi-column text. I took some time to write up an example implementation so that you could see how it works. I also took this chance to do a little experimentation with jQuery UI. As you can see from downloading the source code of this project, it works really well and is really easy to put into place.

I won't be showing much of the code, because there's actually nothing that's specific to AIR. I will however point out the two new properties that we have available to us. Setting up a container to be multi-column couldn't be simpler:

And that's it, -webkit-column-count is a number indicating how many columns you wish to divide your text into; while -webkit-column-gap determines the space between each column. Typography and print nerds should be very happy about this support as it will help you build more compelling magazine and RSS reader style applications using HTML and JavaScript.

Amazon logo

If this article was interesting, or helpful, or even wrong, please consider leaving a comment, or buying something from my wishlist. It's appreciated!

comments powered by Disqus
coach outlet online jordan 13 grey toe beats by dre cyber monday michael kors black friday beats by dre cyber monday jordan 6 black infrared north face cyber monday michael kors cyber monday north face black friday coach outlet black infrared 23 13s north face cyber monday jordan 6 black infrared north face black friday coach cyber monday jordan 11 legend blue north face cyber monday black infrared 6s lebron 12 north face black friday jordan 11 legend blue louis vuitton outlet jordan 13 grey toe grey toe 13s beats by dre black friday coach black friday jordan 13 grey toe coach cyber monday uggs black friday jordan 13 black infrared 23 uggs cyber monday barons 13s uggs black friday beats by dre cyber monday black infrared 6s jordan 13 bred jordan 13 black infrared 23 north face black friday black infrared 6s jordan 11 legend blue michael kors black friday jordan 13 grey toe coach black friday michael kors black friday michael kors cyber monday beats by dre cyber Monday north face cyber monday coach black friday michael kors cyber monday beats by dre cyber Monday north face black friday beats by dre black friday lululemon black friday uggs black friday jordan 13 bred coach cyber monday beats by dre black friday uggs black friday coach black friday black infrared 6s