More tinkering with themes

In a previous entry, I was lamenting the fact that each of my themes relies on two different stylesheets which effectively rules out using an on-the-fly style switcher.

Well, Paul Sowden comes to my rescue. He writes:

"You should add the @import rule to the begining of each external sheet.

The document would have a list of alternate sheets, and inside each of the alternate sheets that are linked (the basic ones) you put the @import rule linking to the more advanced sheet on the first line.

Hey presto, old browsers are happy, new browsers are happy, and people can change sheets actually "on the fly"."

Excuse me while I slap my forehead: it’s so obvious now that somebody has pointed it out to me.

Thanks, Paul.

Friday, February 1st, 2002 11:10pm

Illustrations

Thanks to the magic of machine tags, you can illustrate this post by tagging a picture on Flickr with:

More information

About this site

Adactio is the online home of , a web developer living and working in Brighton, England.

Customise

If your browser was up to it, you'd be able to
?

This is the plain vanilla look.

Search


Subscribe

RSS is an XML-based format for syndicating website content. I have some feeds that you can subscribe to:

Elsewhere

Adactio Elsewhere has small pieces of me, loosely joined:

You can also find me scattered across these sites:

Bedroll

I had the pleasure of welcoming these people into my home:

Buy my book

Bulletproof Ajax