I've improved support for PDAs. Besides being able to browse to http://www.sfsignal.com/pda.htm, links to post entries will now display using the full width of the PDA screen.
The change was quite simple, really. First, I created a copy of the site's style sheet page and optimized it for a PDA display (hiding the left and right columns and changing margins to zero). Then it was simply a matter of adding another style sheet reference (via the LINK tag) to the appropriate templates (the index template and the individual archive template) with the media attribute set to "handheld". Any mobile browser that supports this attribute on the LINK tag will use the PDA stylesheet instead of the regular stylesheet.
Of course, I can extend this method to avoid having to use a special URL in the first place, but that's for another day.
Share:
| Posted by John on Sunday March 27, 2005 - 3:02 PM
| Category: Meta
| © 2005 SF Signal