Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:24
How to hide menus when printing?
Poster: kassandrakat
Dated: Monday July 21 2003 - 18:40:47 BST
I've got a menu on an educational website and I'd like to have the menus disappear when a user tries to print a page. I've tried simple things like surrounding the menus with <div>s and then hiding them in the print stylesheet, but nothing seems to be working. Is there something I can add to the mmenu.js file?
Thanks,
Kat
How to hide Milonic from printouts
Poster: AndrewRoazen
Dated: Friday August 29 2003 - 19:33:52 BST
I mentioned this on the mailing list but it bears repeating.
Create a file named hideprint.css and put the following line in it:
Code:
#menu0 {display:none;}
Then, in your pages using the menu, add the following line into the <HEAD> section:
Code:
<link href="hideprint.css" rel="stylesheet" media="print" type="text/css" />
Do not redo this stylesheet link using the <STYLE> __at__ import url(filename.ext)</style> method. NN4 needs to use this stylesheet, otherwise an obscure bug in NN4 causes some pages with Milonic menus to print as blank pages.
Whoops, looks like Andy already covered this one:
http://www.milonic.com/forum/viewtopic.php?p=8383#8383