Print data inside a div
I have a div object that hold a table inside my web page. The height of the div is just about 500px and 100% of the div is visible to user. If the length of the table is greater than 500 then the div will has a scrollbar, and the user can see all the data by scroll the scrollbar upo and down. Now I have a problem when the user try to print the web page, only a portion of the table can be print if the length of the table is too long. What I try to do is send to printer everthing inside the div. I hear about <style media="print"> but I do not know how to do this?