473,241 Members | 1,631 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,241 software developers and data experts.

orphans / widows

m
Hello,

I have been trying to use orphan and widow control to prevent page
breaks immediately after h1 elements (on a CV). I have validated the
css and html, and used the following hoping this would work:

h1 {
orphans: 4;
widows: 1;
}

Because it's a resume, all the h1 elements are one line only, so I
assumed this would prevent any h1's from appearing as the last thing
on a page, with nothing following it below.

I was hoping this would work in Opera so I could print from that
browser, because it supposedly supports this feature. But it doesn't
seem to work. When I try to print from Opera, there is an h1 on the
third page that is at the very bottom, with nothing beneath it

The page is here: http://www.mdessen.com/mdcv.html

If anyone were to take the time to figure out what is wrong here, I
offer many kind thanks in advance.

michael dessen

Aug 24 '07 #1
3 2889
m
I just re-read the page-break specs and now see what you mean. THANK
YOU for the help!

michael dessen

Aug 24 '07 #2
Scripsit m@mdessen.com:
I just re-read the page-break specs and now see what you mean.
Unfortunately, that's not the end of the story.

Although page-break-after: always and page-break-before: before are
well-supported, the same does not apply to settings that _prevent_ page
breaks or, to put it better, suggest that a page break should _not_ occur.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Aug 24 '07 #3
in comp.infosystems.www.authoring.stylesheets, Jukka K. Korpela wrote:
Scripsit m@mdessen.com:
I just re-read the page-break specs and now see what you mean.

Unfortunately, that's not the end of the story.

Although page-break-after: always and page-break-before: before are
well-supported, the same does not apply to settings that _prevent_ page
breaks or, to put it better, suggest that a page break should _not_ occur.
Actually, page-break-before: avoid is often more likely cause page-break
than prevent it on some browser I tested about 2-3 years ago.

--
Lauri Raittila <http://www.iki.fi/lr>
Aug 24 '07 #4

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

Similar topics

2
by: Fred | last post by:
What is the easiest and most cost effective method of converting a Widows Form output, within the programme, to PDF format for sending by Email. Code sample in C# would be appreciated. ...
1
by: vasanthiraajan | last post by:
I need to capture the "Ctrl+F4" in widows application
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.