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 }

Your email will never ever be published.

Previous:
is is not the same as equal in Python December 1, 2006 Python
Next:
ImageMagick conversion comparison December 9, 2006 Linux
Related by category:
Testing out vite 8 on SPA: Vite 8 is 5x faster December 6, 2025 Web development
How to get all of MDN Web Docs running locally June 9, 2021 Web development
From @monaco-editor/react to prism-react-editor September 25, 2025 Web development
Bot traffic hitting my blog July 9, 2025 Web development
Related by keyword:
Printer usability problem August 24, 2007 Linux
Tip: Printer friendly pages with Page Templates in Zope March 24, 2008 Zope
Find print statements in Python code April 12, 2005 Python, Linux
Don't put title in a <link> tag January 7, 2006 Web development