Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Location
    Oregon, United States of America
    Posts
    882
    Thanks
    1
    Thanked 9 Times in 9 Posts

    @media print and other questions

    I have a long table, that when printed, can sometimes seperate some important row from another. I have recently learned about @media print, and paged media through CSS. I am wondering, is there anything i can do through CSS, to add breaks in the page, or do anything i must, in order to make sure that (for example) row 15 and 16 stay together?

    This is quite important. Quick replys are welcomed.

    Thanks.
    If I'm postin here, I NEED YOUR HELP!!

  • #2
    Senior Coder
    Join Date
    Jul 2004
    Location
    New Zealand
    Posts
    1,315
    Thanks
    0
    Thanked 2 Times in 2 Posts
    There probably is, but it sounds more like a problem with your markup if you must have 2 rows together.
    Forget style. Code to semantics. Seperate style from structure, and structure from behaviour.
    I code to specs, and test only in Firefox (unless stated otherwise).

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There are "page-break-before" properties, with values like "always" or "never". There are others as well, that can control windows and orphans, than kinda thing. Have a look here - http://www.w3.org/TR/CSS21/page.html
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •