473,395 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

about page-break-before

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)
Jul 20 '05 #1
6 4611
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>
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.
(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/>
Jul 20 '05 #2
according "Anne van Kesteren":
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:
<link href="../Styles/print.css" rel="stylesheet" type="text/css" media="print">
(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
problem :(

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

-=- geotso -=-
(remove the TRAP to contact me)
Jul 20 '05 #3
>> 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 :(


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.
Jul 20 '05 #4
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?

--
Anne van Kesteren
<http://www.annevankesteren.nl/>
Jul 20 '05 #5
according "Anne van Kesteren":
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!
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)
Jul 20 '05 #6
Hi!

When I want to print a long table, which dosen't fit on one
page IE adds one empty row on the end on each page.
This empty row is visible due to I need to have borders around
each <td> element. See examples:

http://ceti.pl/~kubik/template/example.html - a long table which I want
print

http://ceti.pl/~kubik/template/example.gif - printed table with visible
empty row
on the bottom
I tried with page-break styles but nothing works correctly...

Can anyone help me? I need to solve this problem, which occurs only
in MSIE. Other browsers print it fine.

Thomas
Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter | last post by:
I have a small custom 404 page in PHP. When this page is triggered I'd like some information about the requesting client, including its reverse IP. I would like the 404 page to be returned to the...
11
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g.,...
40
by: JohnnyCJohnny | last post by:
Is it pretty safe to say that almost all web surfers now use browsers that are Frames compatible? What are most people using these days? IE? Thanks
1
by: Dave Patton | last post by:
I have a potential client for whom I may be doing some non-web-related consulting. I've pointed out to them that their website is very poor, which they acknowledge. I've suggested they consider...
3
by: jm | last post by:
I have a question about codebehind. I have an upload namespace, class and all in a codebehind. I currently have it so it works with one of my .aspx pages. I want to use it for another .aspx...
10
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
97
by: Cameron Laird | last post by:
QOTW: "Python makes it easy to implement algorithms." - casevh "Most of the discussion of immutables here seems to be caused by newcomers wanting to copy an idiom from another language which...
22
by: Sandman | last post by:
So, I have this content management system I've developed myself. The system has a solid community part where members can register and then participate in forums, write weblogs and a ton of other...
4
by: sid | last post by:
"about:blank" oepns new browser window I am writing a webpage that will run on other machines that I may or may not know about. My page is framed where frame1 controls the content of frame2. ...
22
by: Neil Gould | last post by:
Or... when is a script not a script? I have several modules for managing different aspects of our club's website, most of which are multi-page. Does setting such things as server.ScriptTimeout...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.