Guest graham1234 Posted February 19, 2006 Share Posted February 19, 2006 I am producing a print stylesheet for a site. When the content/text is longer than a page it puts the heading 1 and 2 on the first page and then content/text on a second page. The content is within its own div i.e. content and the h1 and h2 is above this. If the content/text is less than a page everything appears on 1 page I think its becuase its trying to fit all on the content div on 1 page and does not want to break the div? If anyone has any ideas how to resolve this I would be very happy.examples<h1>Heading One</h1><h2>Heading Two</h2><div id=content>blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah </div> Link to comment Share on other sites More sharing options...
Guest FirefoxRocks Posted April 17, 2009 Share Posted April 17, 2009 Which browser is this happening in? I have tried print preview on both Firefox and IE8, both will break wherever inside the <div> when necessary.What you describe happening is the result of the page-break-inside: avoid; CSS property value. If you didn't specify this in a stylesheet, it is a weird problem with your browser or printer. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now