SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Zealot themissingelf's Avatar
    Join Date
    Nov 2001
    Location
    UK
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Repeating table headers (in print)

    Anyone know the CSS (or any other method) to get table headings to repeat on each page when printing?

    Cheers

  2. #2
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Vinnie describes how to do it in his blog - http://blog.vinniegarcia.com/oldstuff/000127.html

    Pretty easy really.

  3. #3
    SitePoint Zealot themissingelf's Avatar
    Join Date
    Nov 2001
    Location
    UK
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Excellent - many thanks!

    Next question... How to set the page format to LANDSCAPE?

    Cheers...

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by themissingelf
    Excellent - many thanks!

    Next question... How to set the page format to LANDSCAPE?

    Cheers...
    This:
    Code:
    @page {
      size: landscape;
    }
    However, this was one of those things in CSS 2.0 that was subsequently dropped in CSS 2.1 due to little user agent support. Apparently it wasn't a good idea . The most "reliable" (and I use the term loosely) method is to let your users know about Page Setup options in their browser.

  5. #5
    SitePoint Zealot themissingelf's Avatar
    Join Date
    Nov 2001
    Location
    UK
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Such a shame that it is not supported. Thanks anyway.

    Going back to the table headings... I've noticed that I get a blank row at the end of page 1 of a 2 page printout. Not looked closely at the code yet but just wondered if there was anything obvious that I should be looking for?

    Cheers

  6. #6
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by themissingelf
    Such a shame that it is not supported. Thanks anyway.

    Going back to the table headings... I've noticed that I get a blank row at the end of page 1 of a 2 page printout. Not looked closely at the code yet but just wondered if there was anything obvious that I should be looking for?

    Cheers
    I'd have to see your (x)HTML code to make a judgement call on that one. Could you have a row with a lot of leading whitespace that happens to fall on the page1/page2 line?

  7. #7
    Life is short. Be happy today! silver trophybronze trophy Sagewing's Avatar
    Join Date
    Apr 2003
    Location
    Denver, Phang-Nga, Thailand
    Posts
    4,379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm looking for some information about this (repeating header on print version) but Vinnie's link isn't working. New url, Vinnie???

    Any help appreciated
    The fewer our wants, the nearer we resemble the gods. Socrates

    SAGEWING LLC - QUALITY WEB AND MOBILE APPS. PREMIUM OUTSOURCING SERVICES.
    Twitter | LinkedIn | Facebook | Google+

  8. #8
    SitePoint Wizard
    Join Date
    Aug 2002
    Location
    N.Ireland
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Same here, Vinnie is the page still up on your blog somewhere?


Bookmarks

Posting Permissions

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