Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print text in a layer with scroll 1

Status
Not open for further replies.

ThomasJSmart

Programmer
Sep 16, 2002
634
iv got a layer with a big pile of text, this layer is small and the layer has a scrollbar. (overflow: auto;)

when i print my page it only prints the text that is visible, it wont print the text that i see if i scroll down..

is there a way to get the rest of the text to print using css?

the only other solution i see is to make a framesetting with a scroll.

any idea's?
thanks,

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
well...

I don't know what the rest of your page setup is like, or how dynamic you are but you can set a CSS style sheet that is only for printing. In that stylesheet you could set "Overflow:visible" and do whatever kind of scaling you had to do to make other things show up under it. It would still look normal on the screen but when printed it would print using the details from the Printing Style sheet. It's done something like this:
Code:
<link rel=&quot;stylesheet&quot; media=&quot;print&quot; type=&quot;text/css&quot; href=&quot;printf.css&quot;>

I used this lately to make buttons disapear when printed. notice it says media=&quot;print&quot; that makes all of it's attributes only apply to printing. From what I understand you can have a CSS for Screen and one For Print. When I set up a page for printing I usually just have the print CSS and then add styles to tags for visual affect as I need them.

I hope that helps.



Travis Hawkins
BeachBum Software
travis@cfm2asp.com
 
media=&quot;print&quot; cool :) thanks for that

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top