Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 9th, 2005, 07:53 AM
Authorized User
 
Join Date: Apr 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default CSS Print wrapping

Hi All

I am trying to print out a list of labels from a report I have built. Now problem is the labels are exact size of page divided by 4 (horiz)
and what happens is on the last page for whatever reason the final label is cut in half and printed on the next page leaving a huge gap on the bottom of the page.

Now presumably this is becuase of the print settings and breaks etc. Is it possible to manipulate them affectively? I dont want it to wrap at all or leave any margins.

HELP!



 
Old May 11th, 2005, 10:08 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

If you know how many label rows per page then use the css style:
page-break-before: always
at the appropriate juncture.

--

Joe (Microsoft MVP - XML)
 
Old May 11th, 2005, 10:12 AM
Authorized User
 
Join Date: Apr 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Joe

Thanks thats a bit simple isnt it ;P silly me.

Only thing though is that generally it wraps before the place that I want it to. So is there a way that I can tell it not to wrap any where else?

It tends to be in the middle of a table as well. Which strikes me as a bit strange?

Cheers
S






Similar Threads
Thread Thread Starter Forum Replies Last Post
Text wrapping abhilasha_dubey JSP Basics 1 October 26th, 2007 12:03 AM
Rich's new CSS book: Beginning CSS 2nd Edition jminatel BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 0 June 15th, 2007 11:55 AM
CSS for print - probs with images socoolbrewster CSS Cascading Style Sheets 3 March 23rd, 2006 09:40 AM
"Text-wrapping" bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 28th, 2005 11:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.