Forum Moderators: not2easy

Message Too Old, No Replies

Hiding page elements in print mode

Any known bugs that can affect screen mode?

         

NickH

5:24 pm on Jul 19, 2003 (gmt 0)

10+ Year Member



I'm planning to add some basic print mode styles to my external stylesheet. Initially, at least, it will not be much more than the following...

@media print {
body{color:#000;background:#fff;}
.nav{display:none;}
}

Here, nav is the class assigned to my navigation bar, which I do not want to print.

My question is: does anyone know of any browser/version that can cause the display:none to be erroneously applied in screen mode? (Or similar bug when using id rather than class selector?)

BlobFisk

11:38 am on Jul 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey NickH,

Not that I know of - in compliant browsers this will work a dream!

Are you experiencing problems with it?

NickH

5:23 pm on Jul 20, 2003 (gmt 0)

10+ Year Member



Blobfisk, thanks for your reply.

I've not experienced any problems with the technique. I just wanted to verify there were no known problems in this area.