Archive for the ‘Web Standards’ Category

Goodbye .clearfix, old friend.

Thursday, July 17th, 2008

You all know the old ‘floated elements inside a container cause the container to collapse’ problem?

Well, up until recently, I’d always just called on an old friend, .clearfix, and he’d sorted it out for me. I met .clearfix three or four years ago, and hardly a project has gone by since where I haven’t required his services. You know, I didn’t really ask him how he did it; he’d just quietly go about his job as I directed him, much like Michael Clayton, but without the gambling problem.

But yesterday, when I asked him to help out a colleague for me, little did I know I’d given him his last assignment.

Something happened early this morning – completely coincidentally. A little bird (or rather a tweet) came by and told me that, despite the fact Blueprint CSS uses .clearfix, .clearfix was no longer the way to go. And to be honest, it was almost a relief; the reason I’d never really asked .clearfix how he did his work was that deep down I knew that he was really a hack, and that if I just turned a blind (or ignorant) eye, then I could just pretend like everything was okay and we could all just carry on getting work done.

.clearfix is indeed inelegant, and really is a hack. And would you believe that the alternative solution is not so tricky…
Using overflow: auto; (or overflow: hidden;) on the container with a width will sort it all out for you.
Rather than explain it all here, I’ll just link to a few articles that have already put further effort into describing this:

So, farewell, .clearfix, you’ve served us well.
…and thank you, MB, for the enlightenment.

Web site performance

Thursday, July 3rd, 2008

Last week I read Steve Souders’ High Performance Web Sites. While I already have a fairly good understanding of site performance, having completed a fairly extensive performance analysis of tvnz.co.nz a few years ago and being familiar with Yahoo!’s YSlow plug-in for Joe Hewitt’s Firebug plug-in for Firefox, it was good to get into a bit more detail.

But lately, I’ve come across a few sites that have made me cringe; a colleague pointed out a couple of Swiss ones: migros.ch, and gate24.ch, and I came across the new upandgo.co.nz site on newsites.co.nz.

Let’s look at some stats, with vodafone.co.nz (my old gig) thrown into the mix:

Site YSlow score HTTP requests
(unprimed cache)
Size
(kB, unprimed cache)
Size
(kB, primed cache)
gate24.ch F (40) 55 501 49
migros.ch F (39) 85 996 134
upandgo.co.nz F (35) 77 748 284
vodafone.co.nz B (88) 41 195 23

The first three sites are ASPX sites, with bloated, invalid, (W3C) table-based markup, and what appears to be no performance tuning whatsoever. Sure, they are visually heavier than vodafone.co.nz, but being visually heavier doesn’t necessarily equate to looking better, and more often the end-user benefits of the visual components are offset by the performance overhead they introduce.

So, if you’re a web developer and you don’t use, or know of, Firebug and YSlow, stop what you’re doing right now and get familiar with them. Chris Pederick’s Web Developer toolbar for Firefox is also invaluable.

Learn about ETags, far future Expires headers, gzip, script placement, semantic markup, reducing the number of HTTP requests.

These are all vital factors in presenting a great website.
Figure out what you can do to make your site lighter, faster, and more search engine-friendly.

Extensible CSS

Monday, March 3rd, 2008

Cameron Moll has published Part 1 of his new series The Highly Extensible CSS Interface. He looks at meaningful, lightweight markup, resetting CSS, and resolution dependence.

Getting Better, Faster

Monday, December 24th, 2007

Stephen Caver in his post, Getting Better, pooh-poohs the idea that things can get better in leaps and bounds, but rather postulates that progress is incremental.

With all due respect, (quite a bit of respect, actually, given Stephen is a recent employee of Airbag Industries LLC) I think that Stephen is wrong.

The airplane example is flawed. Sure, as with any product development, aircraft design is incremental.

But in the grand scheme of things, how long did it take for mankind to go from not flying to flying?
How long was it from when the airplane was invented to when it was a useful, commercially viable, everyday-life, kinda thing?

Not long.

And I believe the web is the same.
How long, in the lifetime of electronic communications, did it take for the WWW, from when it was first publicly available to become a part of life?
How long, in the life time of the web, did it take for web standards to become more-or-less ubiquitous?

Not long.

Things webby have been glacial, of late, but I think 2008/2009 will bring some radical changes on the web.

Leaps and bounds, people; leaps and bounds.

Blue Beanie Day

Monday, November 26th, 2007

In case you’re wondering what’s on my head today…

Douglas Vos has inaugurated Blue Beanie Day

Monday, November 26, 2007 is the day thousands of Standardistas (people who support web standards) will wear a Blue Beanie to show their support for accessible, semantic web content.

The blue beanie is, of course, in recognition of Jeffrey Zeldman’s pioneering advocacy of Web Standards.

Digg it, if you want.

Jeff Croft: web standards vs. Web Standards

Wednesday, August 29th, 2007

Jeff Croft has his head screwed on properly; I can’t find anything in this post of his that I don’t agree with.

Eric Meyer: The Veteran’s Charge

Thursday, August 9th, 2007

Eric Meyer gets (rigthtfully) hot under the collar.

Hear, hear, I say.

Irksome: Internet Explorer vs. JavaScript

Monday, July 16th, 2007

So I’m coding a form and I want the user to be able to add more rows to it, if they wish.

So when the user activates a control, I use JS to create some ‘input’ elements (including some radio buttons), add a few attributes to them, and then insert them in a table cell.
It’s not exactly rocket science, even for a JS |\|00|3 such as myself.

Let me expand on this.

(more…)

HTML Emails

Tuesday, June 12th, 2007

Jeffery Zeldman writes that email is not a platform for design. I totally agree, and am pleased that someone with clout is saying so. I know I’m more developer than designer, the medium that is email was never intended to present flashy designy content.

E-mail was invented so people could quickly exchange text messages over fast or slow or really slow connections, using simple, non-processor-intensive applications on any computing platform, or using phones, or hand-held devices, or almost anything else that can display text and permits typing.

Amen. There is some interesting debate in the comments. So, it’s plain text for me. What do you think?

Naked!

Thursday, April 5th, 2007

Wondering why this page looks a little spartan today? That’s because it’s CSS Naked Day!!!

Go check out other nakedness!

Update: It’s no longer the 5th of April; clothes are back on.