Jquery show or fadein overrides the print stylesheet that's the whole problem.
On Mar 4, 2:56 pm, Sean O <seanodot...@yahoo.com> wrote: > You're best served doing that simply with a CSS print stylesheet. > > Just add: > <link rel="stylesheet" type="text/css" media="print" href="print.css" /> > and set all elements you don't want to print to "display: none". > > Here's an Oldie-but-Goodie guide to creating a nice > one:http://www.alistapart.com/articles/goingtoprint/ > > HTH, > SEAN Ohttp://www.sean-o.comhttp://twitter.com/seanodotcom > > > > rayfidelity wrote: > > > Hi, > > > I have a problem, I have an element which I show (let's say fadein > > ("slow")) on certain action (it's set on display:none in CSS). > > > The problem is that i want to print that page without that > > element...how can i do that... fadein, show,... all set the element on > > display:block which means the element will apper no matter what. > > > I've tried something like this > > > $("#gototop").attr("style","@media print{display:none;}"); > > > I wan't the element to be seen on screen, but not for printing! > > > but it doesen't work... > > > Thank, > > > BR > > -- > View this message in > context:http://www.nabble.com/Show-hide-and-print-tp22327863s27240p22330446.html > Sent from the jQuery General Discussion mailing list archive at Nabble.com.