SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast lalewicz's Avatar
    Join Date
    Jun 2003
    Location
    Howell, MI - US
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Landscape printing

    Is there a way to change page setup for printing in the browser to landscape so that the user doesn't have to do it by hand (doesn't have to change the option in the page setup tab in the file menu of the browser)?

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Some CSS ought to do it:
    Code:
    /*put this in a print-media stylesheet*/
    @page {
      size: landscape;
    }
    If that one doesn't work, try this:
    Code:
    body {
      page: rotated;
    }

  3. #3
    SitePoint Enthusiast lalewicz's Avatar
    Join Date
    Jun 2003
    Location
    Howell, MI - US
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I didn't see your reply come in

    But thank you. We will give these a try.

  4. #4
    SitePoint Addict jamesglewisf's Avatar
    Join Date
    Sep 2000
    Location
    Big D
    Posts
    321
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think those work in Internet Explorer yet.
    Jim Lewis
    To BE or Not to BE, or: How I Learned to Stop Worrying and Love the Barium Enema
    FrappyDoo Forums

  5. #5
    SitePoint Addict jamesglewisf's Avatar
    Join Date
    Sep 2000
    Location
    Big D
    Posts
    321
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://msdn.microsoft.com/library/de...properties.asp says
    Although @page rules are represented in the Cascading Style Sheets (CSS) object model in Microsoft® Internet Explorer 5.5 and later, the rules are not used by the default print template for Internet Explorer. The rules can be used by print templates developed for applications that host MSHTML. Attributes such as size and margin, which are not explicitly supported, are exposed as expando properties in these applications.
    Jim Lewis
    To BE or Not to BE, or: How I Learned to Stop Worrying and Love the Barium Enema
    FrappyDoo Forums

  6. #6
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ...and the world gasps in amazement at the discovery that IE does not support a useful CSS rule...
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com

  7. #7
    SitePoint Enthusiast lalewicz's Avatar
    Join Date
    Jun 2003
    Location
    Howell, MI - US
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Huh?

    Well after reading what I could about this, I find that it all seems pretty stupid and worthless. I really couldn't figure out if it was something you could make work or not. We should have all studied culinary arts instead of computer science LOL.

    Quote Originally Posted by redux
    ...and the world gasps in amazement at the discovery that IE does not support a useful CSS rule...


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
  •