473,584 Members | 2,886 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

about page-break-before

Hi

I'm trying to apply the page-break-before attribute in a <h2> tag like this:
<h2.newpg>Tit le 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 4617
geotso wrote:
Hi

I'm trying to apply the page-break-before attribute in a <h2> tag like
this:
<h2.newpg>Tit le here</h2>
Should be <h2 class="newpg">T itle 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.annevankest eren.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>Tit le here</h2>

Should be <h2 class="newpg">T itle 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.annevankest eren.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
1758
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 client's browser immediately, after invoking another function or script that takes care of the lookup & email duties. The 404 page doesn't care about...
11
4932
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., http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=Tidy7IDbDHA.2108%40cpmsftngxa06.phx.gbl) that indicate that ASP will queue up requests when they come...
40
2901
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
1790
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 having me "rewrite" the website. This would use their existing content - it's not really about "redesign", and I've told them that I don't purport...
3
238
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 page. The problem is that they codebehind looks at a specific directory (since it was only being used by one page). I need it to decide which...
10
3410
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 database or continue to process on to the next page. I am now trying to learn ASP to see if we can replace some of our applications that were written in...
97
4336
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 doesn't have immutable variables. Their real problem is usually with binding, not immutability." - Mike Meyer Among the treasures available in The...
22
2684
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 things. So, in instances where I list, for example, the latest weblogs. I list the headline of the weblog, the date and the name of the member who...
4
3085
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. What I have found is that if the page in Frame2 fails to load and I get an error page. when I detect an error page I want to set...
22
2135
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 or response.buffer values at the start of the first page persist throughout the session, or are they "reset" with each function or sub, etc.? ...
0
7897
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8330
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7940
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8198
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6587
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5379
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3850
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2336
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1162
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.