CSS selector bug in IE?

05 December 2006   0 comments   Web development

Mind That Age!

This blog post is 12 years old! Most likely, its content is outdated. Especially if it's technical.

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:

table.expenses input, 
{ 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:

table.expenses input, 
{ 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 }


Your email will never ever be published

Related posts

is is not the same as equal in Python 01 December 2006
ImageMagick conversion comparison 09 December 2006
Related by Keyword:
Tip: Printer friendly pages with Page Templates in Zope 24 March 2008
Printer usability problem 24 August 2007
Don't put title in a <link> tag 07 January 2006
Find print statements in Python code 12 April 2005
Printer friendly and PDF version of every page 14 January 2004
Related by Text:
jQuery and Highslide JS 08 January 2008
I'm back! Peterbe.com has been renewed 05 June 2005
Anti-McCain propaganda videos 12 August 2008
Ever wondered how much $87 Billion is? 04 November 2003
Guake, not Yakuake or Yeahconsole 23 January 2010