This is a discussion on "how to print the certain portion of a webpage ??" within the JavaScript Forum section. This forum, and the thread "how to print the certain portion of a webpage ?? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
how to print the certain portion of a webpage ??
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Hello frens and seniors of webforumz...
em back with some problem in javascript... what i am trying to do is to print the certain portion of the page (not the whole page) using javascript but i am not getting the appropriate soln..Can anybody help me with the neccessary js code... Anyway thanks in advance |
|
|
|
|||
|
Re: how to print the certain portion of a webpage ??
If you set your css up properly, then when you go to print the document, everything other than the part you want to print will be hidden. You need to use a seperate css file and in the link line that hooks the file into your pages, you need to set media='print'. |
|
|||
|
Re: how to print the certain portion of a webpage ??
Add this line in your CSS Stylesheet
Cheers, Bruno Aun |
|
|||
|
Re: how to print the certain portion of a webpage ??
As <span> is an inline element, it is not an appropriate method for defining whole areas of a page, which is the realm of the <div> element.
|
![]() |
| Tags |
| print, certain, portion, webpage |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Print Without Prompt | chrisgeast | JavaScript Forum | 2 | Sep 7th, 2007 10:34 |
| print from my website | dber | Web Page Design | 7 | Jun 24th, 2006 22:54 |
| css - print and screen? | cyberpac9 | Web Page Design | 0 | Jan 3rd, 2006 20:45 |
| ClaireB | JavaScript Forum | 2 | Sep 9th, 2005 18:52 | |
| Echo vs Print | Sqrlgrl | PHP Forum | 3 | May 30th, 2005 22:31 |