Main Page Content Starts

easyweb.co.uk

Photography and fine web writing since the last century

css

Targetting and Excluding Safari with CSS

My new site design is joining the cool kids by using LiveSearch. But I wanted to go one step cooler - with a few wee HTML extensions, Safari replaces the boring square search box with a curvy one that anti-aliases beautifully into the background.

Without Field Focus

Safari screenshot

With Field Focus

Safari screenshot

Here's how you do it: you add non-standard attributes to the input field:

But how to enable this for other browsers, without messing up the Safari rendering..? Read on to find out how.

 

CSS Generator

Garrett spotted and spooled this fantastic CSS layout generator app. Not only is the code extremely high quality, it's amazingly well commented, detailing all the browser hacks it's using.

I'm putting money on me using it to build the replacement templates for this site...

http://www.positioniseverything.net/articles/pie-maker/pagemaker_form.php

 
XML feed
 
 
 
 
 

The access keys for this page are: ALT (Control on a Mac) plus: