Jordan6 New member Jul 3, 2011 119 0 0 Jul 28, 2012 #1 I need to print a specific element in the page (an image) without the header, left nav, right nav, footer etc. Can anyone provide the CSS and html/JS/php ? Thanks
I need to print a specific element in the page (an image) without the header, left nav, right nav, footer etc. Can anyone provide the CSS and html/JS/php ? Thanks
J Jake232 New member Sep 4, 2010 712 4 0 Jul 28, 2012 #2 Have a separate print.css file, and apply display:none; to everything you don't want printed.
pinchyfingers New member Jan 11, 2011 705 18 0 Live, Without A DJ Jul 28, 2012 #4 http://www.wickedfire.com/design-de...160956-code-printing-single-element-page.html
Jordan6 New member Jul 3, 2011 119 0 0 Jul 29, 2012 #5 Jake232 said: Have a separate print.css file, and apply display:none; to everything you don't want printed. Click to expand... Can you provide the CSS code and the php code please?
Jake232 said: Have a separate print.css file, and apply display:none; to everything you don't want printed. Click to expand... Can you provide the CSS code and the php code please?
J Jake232 New member Sep 4, 2010 712 4 0 Jul 29, 2012 #6 Jordan6 said: Can you provide the CSS code and the php code please? Click to expand... Code: /* CSS */ *{ display:none;} #image-id-here{ display:block; } Anything else you'll have to work out yourself.
Jordan6 said: Can you provide the CSS code and the php code please? Click to expand... Code: /* CSS */ *{ display:none;} #image-id-here{ display:block; } Anything else you'll have to work out yourself.
CCarter Final Boss ® Mar 15, 2008 4,517 200 63 @MercenaryCarter www.moneyoverethics.com Aug 2, 2012 #7 Maybe I don't understand your question, but you can highlight an element, and print the selection only already.
Maybe I don't understand your question, but you can highlight an element, and print the selection only already.