DHTML
  Home arrow DHTML arrow Page 3 - Padding, Pages, and More Style Sheet Prope...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DHTML

Padding, Pages, and More Style Sheet Properties
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 4
    2007-10-18

    Table of Contents:
  • Padding, Pages, and More Style Sheet Properties
  • Page
  • Page-break-inside
  • Pitch-range
  • Quotes

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Padding, Pages, and More Style Sheet Properties - Page-break-inside


    (Page 3 of 5 )

    page-break-inside
    IE n/a NN n/a Moz n/a Saf n/a Op 7 CSS 2

    Inherited: Yes

    Defines whether a printed page break is allowed within an element. Especially useful to define a container of multiple block elements that you want to keep printed on the same page.

    CSS Syntax

    page-break-inside: breakType

    Value                  One of two constant values: avoid | auto .

    Initial Value   auto

    Example              div.together {page-break-inside: avoid}

    Applies To           Block-level elements.

    pause
    IE n/a NN n/a Moz n/a Saf n/a Op n/a CSS 2

    Inherited: No

    For aural style sheets, this is a shorthand property for setting both pause-after and pause-before properties in one statement. You may supply one or two values for this property.

    CSS Syntax

    pause: time | percentage {1,2}

    Value

    This property accepts one or two values, depending on the values you want to assign to the pause-before and pause-after settings. A single value of the pause property is applied to both pause-before and pause-after. When two values are supplied, the first is assigned to pause-before; the second is assigned to pause-after .

    Values for time  are floating-point numbers followed by either the ms (milliseconds) or s (seconds) unit identifier. These settings are therefore absolute durations for pauses. Values for percentage  are inversely proportional to the words-per-minute values of the speech-rate property setting. Because the speech-rate controls how long it takes for a single word (on average), a pause setting of 100% means that a pause has the same duration as a single word; a setting of 50% would be a pause of one-half the duration of speaking a single word.

    Initial Value        Depends on the browser.

    Applies To           All elements.

    pause-after, pause-before
    IE n/a NN n/a Moz n/a Saf n/a Op n/a CSS 2

    Inherited: No

    For aural style sheets, these set the duration of a pause after or before the current element. You can assign both properties to the same element to designate pauses before and after the element is spoken.

    CSS Syntax

    pause-after: time | percentage
    pause-before: time |
    percentage

    Value

    Values for time  are floating-point numbers followed by either the ms (milliseconds) or s (seconds) unit identifier. These settings are therefore absolute durations for pauses. Values for percentage are inversely proportional to the words-per-minute values of the speech-rate property setting. Because the speech-rate controls how long it takes to speak a single word (on average), a pause setting of 100% means that a pause has the same duration as a single word; a setting of 50 % would be a pause of one-half the duration of speaking a single word.

    Initial Value         Depends on the browser.

    Applies To            All elements.

    pitch
    IE n/a NN n/a Moz n/a Saf n/a Op n/a CSS 2

    Inherited: No

    For aural style sheets, this sets the average pitch frequency of the voice used for text-to-speech output.

    CSS Syntax

    pitch: frequency | frequencyConstant

    Value

    A frequency  value is any positive floating-point number followed by either the Hz (Hertz) or kHz (kiloHertz) units, as in 500Hz or 5.5kHz. Alternatively, you can use any of the following constant values: x-low | low | medium | high | x-high . As of the CSS2 working draft available for this book, no specific frequency values had yet been assigned to these constants.

     

    Initial Value         medium

    Applies To             All elements.

    More DHTML Articles
    More By O'Reilly Media


       · This article is an excerpt from the book "Dynamic HTML: The Definitive Reference,...
     

    Buy this book now. This article is excerpted from chapter four of Dynamic HTML: The Definitive Reference, Third Edition, written by Danny Goodman (O'Reilly; ISBN: 0596527403). Check it out today at your favorite bookstore. Buy this book now.

    DHTML ARTICLES

    - Text-Justify, Volume, and Other Style Sheet ...
    - Ruby-Position, Size, and Other Style Sheet P...
    - Padding, Pages, and More Style Sheet Propert...
    - Marks, Orphans, and More Style Sheet Propert...
    - Layouts, Margins, and Other Style Sheet Prop...
    - Floats, Fonts, and Other Style Sheet Propert...
    - Color, Filters, and Other Style Sheet Proper...
    - Borders and More with Style Sheets
    - Learning Style Sheet Properties
    - Style Sheet Property Reference
    - Completing a Noisy Image Application
    - An Object-Based Approach to Building Noisy I...
    - A Basic Method for Building Noisy Images
    - Adding More Features to Sliders with the Scr...
    - Using Sliders with the Scriptaculous Framewo...







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway