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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing a page with DIVs

Status
Not open for further replies.

fpgiv

Programmer
Oct 1, 2003
91
0
0
US
Hi,
I have some webpages with multiple DIVs on them, and when I print them, only parts of the page show up, not the entire page. Is there any way around this?
Thanks!
 
When you say "Multiple DIV's" do you mean div's as in the box model? Yes, you can create a print stylesheet that can contain different sizes, positions, and visibility properties for each one of the boxes. You should be able to fully customize how you want your printed document to look.

You can import it along with your other stylesheets.

<style type=&quot;text/css&quot; media=&quot;screen&quot;>@import &quot;css/screenstyle.css&quot;;</style>
<link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;print&quot; href=&quot;css/printstyle.css&quot; />

Hope that helps.

Cheers, Faded
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top