473,569 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2934
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.infosystem s.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
6143
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. Regards, fred.
1
1483
by: vasanthiraajan | last post by:
I need to capture the "Ctrl+F4" in widows application
0
7697
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
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7672
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
7968
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
6283
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...
1
5512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
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
937
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.