SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict Divisive Cotton's Avatar
    Join Date
    Jun 2008
    Location
    Andy lives in London, UK
    Posts
    393
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Paged media CSS 2.1 pseudo-class declarations

    Is there any use for paged media in CSS?

    This is for printing, yes?

    @page :first
    @page :left
    @page :right

    http://www.w3.org/TR/CSS2/page.html

  2. #2
    SitePoint Guru Luki_be's Avatar
    Join Date
    Jun 2008
    Location
    Brazil, Minas Gerais. But i'm from Belgium.
    Posts
    867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It lets the content of the document to be split into one or more discrete pages. Paged media includes paper, transparencies, pages that are displayed on computer screens, etc.

    The CSS2 page model specifies how a document is formatted within a rectangular area (the page box) that has a finite width and height. These features fall into two groups:

    -features that define a particular page layout.
    -features that control the pagination of a document.

    For more in dept: here's an explanation on how to achieve.

    But browser support? Not so great i guess...
    SitePoint Guru
    Sitepoint - the ultimate Css well
    As a computer, I find your faith in technology amusing.
    Sitepoint reference, your friend in need

  3. #3
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,582
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    For printing you shouldn't rely on CSS3 basically at all because almost no browsers have anything implimented.

    Opera (my information might be outdated, FF/IE8 may suport it)) is currently the only one who currently even supports page-break/page-break-after etc etc.

    Just remember, graceful dedegration (butchered spelling ). Improved expereince for those with better browsers, but a functional site for those with not as great
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work


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
  •