Thanks Alex.

I couldn't see the forest for the trees, as it were. As it turns out, 
the use of the id attribute is particularly amusing because there are 
four such forms on one page, and they are all significantly different.

When I resign myself to styling someone else's markup, I go partially blind!

I didn't realise attribute selectors were CSS3, either. I think this 
adventure can go down as a lesson in bad practice.

Cheers,
Barney


Alex Robinson wrote:
> As Christian has just pointed out, IE6 doesn't understand CSS3 attribute 
> selectors (sidenote: IE7 does).
> 
> However, your code suggests that you don't need to use attribute 
> selectors. Since ids are meant to be unique, you can only have element 
> on the page called 'resourceSelector'. Therefore
> 
>    #resourceSelector .resource.left
> 
> would do just as well.
> 
> 
> Of course, if you are using attribute selectors to specify elements in 
> other ways, eg.
> 
>  input[type="submit"]
> 
> then my advice is worthless
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to