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!

CSS & Printable Area

Status
Not open for further replies.

booeyOH

Programmer
May 30, 2007
48
US
Is there a preset easy way to put a "div" around an area to ensure it will not get cut off when printing on a 8.5 x 11 page?

Or some good tutorial on using CSS and printable web pages that someone knows about?

Thanks,
Bryan
 
You could put it all in a div that when being printed has dimensions of width: 8.5in; and height: 11in;. Of course that could be prone to so many problems I don't even want to talk about.

I would suggest you change the width of whatever div you use to 100% in the print stylesheet. That would ensure that your page would be 100% of the page wide. As for the length, it should not exceed it if you don't put enough content. If there's more content, something will have to happen and rather than scrollbars on the paper, I would have it print on two pages.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top