Missing Scrollbars on Divs on the iPhone

Posted: March 9th, 2009 | Author: Jan Gorman | Filed under: Code | Tags: , , , , | No Comments »

After relaunching Nickel yesterday I today had a look at the site on the iPhone. I hadn’t bothered before because YAGNI. Unfortunately the iPhone doesn’t display any scrollbars for DIVs that have an overflow set (incidentally it won’t show any on iframes either). Lucky for us that we’re trying to get people to use their keyboards to navigate the projects anyway using the excellent jQuery scrollTo plugin. I added the scrolling functionality to the keyboard icons on the page and it all works nicely on the iPhone now as well.


HTML Validation

Posted: March 6th, 2009 | Author: Jan Gorman | Filed under: Code | Tags: , , | No Comments »

Jeff Atwood makes a very good point about validating your markup and if it really matters or not. One small addendum I have to make: I think validation can be useful when you try and rid your page of browser quirks. If your markup is valid and the page still misbehaves in, say Internet Explorer, you’ll know where to workaround which can often turn out to be a time saver in the long run.