This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > December 2003 > about page-break-before





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author about page-break-before
geotso

2003-12-21, 11:48 pm

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;}

However,
1. In IE 6.0 while the heading (and the text below it) starts from the top
of the page2, the page1 text (as it isn't too much to cover the whole page)
starts from the middle of the page leaving a big blank space at the top.

2. MozFirebird 0.7 doesn't recognize the style at all and it returns the
whole text without the break.

3. Disappointed from the result I didn't try to test it in Navigator 7.x and
Opera 7 :)

(Tests done in winXP Pro environment)
Am I doing something wrong with the style, or what?

Thanks.

____________________
Merlin dying, to the Lady of the Lake:
"we lived our lives with passion and devotion"

-=- geotso -=-
(remove the TRAP to contact me)
Anne van Kesteren

2003-12-21, 11:48 pm

geotso wrote:
quote:

> 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>
quote:

> 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.
quote:

> (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/>


--
Anne van Kesteren
<http://www.annevankesteren.nl/>
geotso

2003-12-21, 11:48 pm

according "Anne van Kesteren":
quote:

> geotso wrote:
>
>
>
> Should be <h2 class="newpg">Title here</h2>
>


Sorry, my mistake! I corrected it.
quote:

>
>
> 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:
<link href="../Styles/print.css" rel="stylesheet" type="text/css" media="print">
quote:

>
>
> 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
problem :(

--
____________________
Merlin dying, to the Lady of the Lake:
"we lived our lives with passion and devotion"

-=- geotso -=-
(remove the TRAP to contact me)
geotso

2003-12-21, 11:48 pm

>> Out of date example that still works:
quote:

> I'm going there right now, as the first two suggestions *don't* resolve
> my problem :(
>



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?

Thanks again.
Anne van Kesteren

2003-12-21, 11:48 pm

geotso wrote:
quote:

> 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.
quote:

> 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?



--
Anne van Kesteren
<http://www.annevankesteren.nl/>
geotso

2003-12-21, 11:48 pm

according "Anne van Kesteren":
quote:

> geotso wrote:
>
>
>
> It's Dutch. Once I have time I will translate that test into English and
> make it better.
>
>
>
>
> Yes, certainly. You know that tables are not supposed to be used for
> layout?
>


just fancy!
I didn't even think of it...
Well, I'll try to re-design the page.

Thanks.

--
____________________
Merlin dying, to the Lady of the Lake:
"we lived our lives with passion and devotion"

-=- geotso -=-
(remove the TRAP to contact me)
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews