For a few years now, web developers doing CSS-based layouts have used floats or absolute positioning for layout web sites to avoid using non-semantic HTML
While doable, extra hoops often have to be jumped through (mostly for IE) and some seemingly simple things can be harder than necessary (like equal height columns).
However, for a simpler solution, CSS-based
display:table-cell etc are all usable today across Firefox 2+, Safari 3+, Opera 9+ and IE8. Continue reading
24 Ways has an excellent article on using Google App Engine as your own Content Delivery Network.
A CDN is a network of servers around the world to serve content from your site from the nearest physical location. All the large sites (Yahoo, Google, Amazon, etc) use them.
After reading the above post, I was also curious to find out how if Google App Engine helps in the following: compression, expires headers and versioning. It looks like it does. Continue reading
Jonathan Snook recently posted a really neat background animation technique using jQuery. This was something I was looking for and it seemed like a good candidate for a jQuery plugin.
So, following on from my recent post about turning jQuery code into richer, unit testable plugin code, I thought I’d describe the quick process of doing so here. (It’s worth reading Snook’s post first though!) Continue reading
It’s by-line of “write less, do more” really seems apt.
But sometimes, by writing just that little bit extra, you can do even more.
For example, I often try to do the following:
- Make most jQuery code into reusable plugins
- Use the jQuery plugin development pattern for added flexibility
- Combine the two approaches to drive out a richer API for the plugin
By unit testing with QUnit, I find I often need to trigger additional events or add additional code from within the plugin so the test can be meaningful.
But this extra code isn’t only useful for testing, it becomes a useful part of the plugin’s API, improving its functionality and flexibility without sacrificing maintainability and readability of the code.
I’ll try to demonstrate that in this post. Continue reading
This will allow you to write web pages that refer to those scripts rather than copies on your own site, reducing your bandwidth, but also leveraging the infrastructure capabilities of Google, such as their content distributed network (which means users would be served those files from a location much closer to them), properly compressed, minified, cacheable files, etc. Continue reading
Firefox 3.0 beta 5 on Kubuntu 8.04 renders some text way too big. It turns out to be an issue when using points for your font size units in CSS (although generally relative units should be preferred, anyway!). You can fix this by
- Going to about:config
- Look for the setting called
layout.css.dpi. The default value is -1.
- Change it to 96
The problem appears not to be Firefox, but the GNOME window manager’s settings. However, I don’t know how to change those when running KDE instead of GNOME. Anyone know?
Firebug may also have trouble running so this post has a tip on how to sort that out. Continue reading
I attended the Accessibility 2.0 conference, held in London on 25th April, 2008.
This post is a summary of some main points from each session, including links to notes from others, as well as slides from presenters. Continue reading
Microsoft recently announced an add-on to Office 2007 to let people search for commands by typing it in if they can’t find it in the new Ribbon user interface.
I find it interesting that a number of interfaces are now offering “shortcuts” to mouse clicking everywhere.
Is typing become the new clicking? Continue reading
What a pleasant surprise to see the onenaught.com logo nominated for a logo design award at David Airey’s Logo Design Love Awards web site. Continue reading
A little while back the web development blogs were abuzz with Microsoft’s announcement that IE 8 will, by default, render in IE7 mode, so as not to “break the web.”
Well, it seems that the IE team have decided to change that decision, and decided that IE8 will, by default, interpret web content in the most standards compliant way it can. Continue reading