Kung Fu Kung Fu

Fujian White Crane Kung Fu

Zope Zope

What I have and am doing with Zope

Photos Photos

Photoalbum, both old and new.

Receptsamlingen Receptsamlingen

In Swedish only. About my "Collection of Recipes" website.

Contact me Contact me

My contact details and how to contact me.

  Mobile version of this page Mobile version of this page


 

CSS selector bug in IE?

css validator, w3c css, print, print.css

5th of December 2006

For the print.css stylesheet I wanted to hide away several of the "interactive" things such as some forms and stuff. This is the code I used:

 img.camera,
 img.edit,
 table.expenses input, 
 #shownfields, 
 input[type="submit"],
 .exportlinks 
 
{ display: none }

Works like a charm in Firefox but in IE (version 6 at least) none of them were applied. If I removed the input[type="submit"] selector the other ones worked. Is this a bug in Internet Explorer? Or have I declared it incorrectly. The W3C CSS validator sure doesn't hold me guilty. Here's what the code looks like now:

 img.camera,
 img.edit,
 table.expenses input, 
 #shownfields, 
 .exportlinks 
 
{ display: none }
 /* If you run Firefox or like you won't have to see 
    the submit buttons when you print this page. */

 input[type="submit"] { display: none }


Comment

 
Name:
Email:
hide my email address.

Your email address will be encoded to prevent email-extraction spiders from reading it so you won't get spammed if you decide to show your email address.