![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi I'm trying to apply the page-break-before attribute in a <h2> tag like this: h2.newpg>Title here</h2 |
|
where: .newpg { page-break-before:always;} |
|
(Tests done in winXP Pro environment) Am I doing something wrong with the style, or what? |
#3
| |||
| |||
|
|
geotso wrote: Hi I'm trying to apply the page-break-before attribute in a <h2> tag like this: h2.newpg>Title here</h2 Should be <h2 class="newpg">Title here</h2 Sorry, my mistake! I corrected it. |
|
where: .newpg { page-break-before:always;} Looks fine? Have you specified the media-type somewhere? Make sure it is on print it is not on all. the style is in an external stylesheet that I call like this: |
|
(Tests done in winXP Pro environment) Am I doing something wrong with the style, or what? Yes Out of date example that still works: http://annevankesteren.nl/test/print/ I'm going there right now, as the first two suggestions *don't* resolve my |

#4
| |||
| |||
|
|
Out of date example that still works: http://annevankesteren.nl/test/print/ I'm going there right now, as the first two suggestions *don't* resolve my problem ![]() |
#5
| |||
| |||
|
|
Unless the comments of the stylesheets are hidding something vital (I don't know your language) |
|
there is nothing different with my page. I even changed the style I use for the page-brake from a class to an ID as in your example and yet the problem is still there. The only (obvious) difference I can see is that your text is in DIV tags, while mine is in a table's cell. Could this cause the problem? |
#6
| |||
| |||
|
|
geotso wrote: Unless the comments of the stylesheets are hidding something vital (I don't know your language) It's Dutch. Once I have time I will translate that test into English and make it better. there is nothing different with my page. I even changed the style I use for the page-brake from a class to an ID as in your example and yet the problem is still there. The only (obvious) difference I can see is that your text is in DIV tags, while mine is in a table's cell. Could this cause the problem? Yes, certainly. You know that tables are not supposed to be used for layout? just fancy! |
#7
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |