orphans / widows

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • m@mdessen.com

    orphans / widows

    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

  • m@mdessen.com

    #2
    Re: orphans / widows

    I just re-read the page-break specs and now see what you mean. THANK
    YOU for the help!

    michael dessen

    Comment

    • Jukka K. Korpela

      #3
      Re: orphans / widows

      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")


      Comment

      • Lauri Raittila

        #4
        Re: orphans / widows

        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>

        Comment

        Working...