FIR is the mind-killer

The relaunch of A List Apart has gotten FIR on my mind.

The idea behind FIR (Fahrner Image Replacement) is that one can use a block element (e.g. <div> or <h1>) in place of an image, using CSS width, height, and background-image, along with a nested <span>. (I believe it was Doug Bowman who first documented the process in detail.) Using FIR, modern browsers show an apparently normal image: actually an HTML block-level element, with the desired image file as its background-image property. Used with the @import hack, the FIR’d image shows up as its true textual self in non-graphical or non-compliant browsers like Lynx and Netscape 4.x, and screen readers for disabled web users.

The method has drawbacks in the latter browsing environment, as described here, but that doesn’t bother me too much, as my <h1>s mostly mirror my <title>s, so a screen reader which skips over the hidden nested span isn’t missing anything that wasn’t already in the title tags. I continue using FIR partly for the same reason that Dave Shea’s Zen Garden sticks to it: when I return to randomizing blog layouts, FIR will be essential for customizing headers and divs in a single document shared by multiple style sheets. Additionally, FIR’d headers serve a somewhat presentational purpose for users browsing in unstyled visual environments (e.g. Lynx or Opera with styles toggled off, as I occasionally do at work ;) where the nested span is visible at the top as a simple header.

As an added bonus, FIR makes images a bit harder to pirate. The block-level element, while appearing as an image, is immune to right-click saving or OS-based drag-and-drop. Try it on my face up there to the right. You can’t just save or drag; you need to view source, look for the style sheet, and copy the image URL from there: not foolproof protection, but certainly a substantial improvement over user-hostile methods such as disabling mouse functions with javascript.

If you need to use FIR, but the usability/accessibility issues discussed in Joe Clark’s ALA article are of concern to you, Dave Shea has documented several alternative FIR methods, each with its own advantages and drawbacks. Myself, I’m sticking to what works for me.

(The post title is a Dune reference. One of my favorite email sigs was by someone who replaced “fear” with “beer.”)

Update: As Mike points out in his comment, Mozilla has a “Save Background Image” context menu option which saves background images from divs and headers as well as from the page body. That’s worth knowing.

Adieu, Concorde

Last Boom – the Concorde’s final flight. My own experience with the Concorde has been limited to seeing it once in New York, and watching Airport ’79 repeatedly, wishing I could go and ride it, despite the repeated air disasters the fictional Concorde went through.

Ionic Gale

Big solar storm hitting Earth today, which could potentially rival the storm of 1859. I was watching SpaceWeather for news on this, knowing that there were a couple of sunspots spitting out some powerful CME’s. News is that there could be auroras visible as far south as middle latitudes, which covers the DC/VA area. (Although DC’s light pollution will probably obscure anything fainter than Magnitude 3.) More info: possible effects on electrical systems, MeFi input.

(Update: Just hours before the scheduled arrival of this amazing, momentously colossal solar flare, the comments have been hit by a massive trollar flare! Commenter’s weblog here. But he is right about all the media hype. The current north-alignment of the earth’s magnetic field is unconducive to strong geomagnetic activity, so we won’t be seeing any real fireworks unless the tilt changes over the weekend.)

Veni, Vidi, Abscedi

All charm, no moneybags. Teddy Benigno on President Bush’s brief visit to the Philippines. Again, he is able to sum up the Philippines’ general political situation in a few terse, disheartening paragraphs.

Kessel Run

Han Solo: “It’s the ship that made the Kessel Run in less than twelve parsecs.”

The two issues here are:

  1. “Parsecs” are an earth-construct: the distance from the sun which would result in a parallax-second arc from earth’s orbit — about 3.26 light years. Such a term should be completely useless a long time ago in a galaxy far, far away.
  2. Han is using “parsecs” as though it were a measure of time rather than distance. The Star Wars Technical Commentary section on Units of Distance has this to say: “The Run involves travel through or past an unnavigable region; taking a route of shorter distance requires a good ship and skillful pilot.” Right.

There’s a lesson to be learned here: when writing science fiction, study your science before writing the fiction.

SubBug

A stray ladybug balloon appears to crawl through the slots of the arched concrete ceiling at Metro Center station.

Photo taken with a Palm Zire 71.