Tinkering with the themes

Hopefully, you won’t notice anything different but I’ve been tinkering with the stylesheets for the various themes for the site.

After I read this piece at frownland, I realised I was kind of cheating with my theme-switching widget. I was using server-side code (PHP) to change the "eyecandy" for each theme.

Now, I think I’ve managed to achieve a fairly complete seperation of style and content. In fact, I would be able to use the excellent one-click style-switching widget if it weren’t for the fact that each theme uses two stylesheets.

I use <link> to call up one stylesheet with all the basic stuff (fonts, colours, etc.) that even Netscape 4 can understand. I use @import for the second stylesheet which has all the fancy positioning stuff.

That way, older browsers that don’t understand @import just get the basic styles.

The only fly in the ointment is Internet Explorer 4.5 for the Mac. It *thinks* it understands @import but then proceeds to totally mangle the styles.

A non-compliant browser that thinks it is standards-compliant. It is, as a friend of mine put it, "the worst kind of idiot".

Friday, February 1st, 2002 1:52am

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