
Do you train Kung Fu?
Or know someone who does?
Then check out KungFuPeople.com
Mobile version of this page
Previous:
is is not the same as equal in Python
Next:
ImageMagick conversion comparison
Find print statements in Python code
Don't put title in a <link> tag
Printer usability problem
Tip: Printer friendly pages with Page Templates in Zope
is is not the same as equal in Python
Next:
ImageMagick conversion comparison
Related blogs
Printer friendly and PDF version of every pageFind print statements in Python code
Don't put title in a <link> tag
Printer usability problem
Tip: Printer friendly pages with Page Templates in Zope
Related by category
CSS selector bug in IE?
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 }
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 }
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 }

