Cargando…

Selectors, specificity, and the cascade /

Exactly how does the "cascade" in Cascading Style Sheets work? This concise guide demonstrates the power and simplicity of CSS selectors for applying style rules to different web page elements. You'll learn how your page's presentation depends on a multitude of style rules and th...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Meyer, Eric A.
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Sebastopol, Ca. : O'Reilly Media, 2012.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Machine generated contents note: 1.Selectors
  • Basic Style Rules
  • Element Selectors
  • Declarations and Keywords
  • Grouping
  • Grouping Selectors
  • Grouping Declarations
  • Grouping Everything
  • Class and ID Selectors
  • Class Selectors
  • Multiple Classes
  • ID Selectors
  • Deciding Between Class and ID
  • Attribute Selectors
  • Simple Attribute Selectors
  • Selection Based on Exact Attribute Value
  • Selection Based on Partial Attribute Values
  • A Particular Attribute Selection Type
  • Using Document Structure
  • Understanding the Parent-Child Relationship
  • Descendant Selectors
  • Selecting Children
  • Selecting Adjacent Sibling Elements
  • Selecting Following Siblings
  • Pseudo-Class Selectors
  • Combining Pseudo-Classes
  • Structural Pseudo-Classes
  • Dynamic Pseudo-Classes
  • UI State Pseudo-Classes
  • The :target Pseudo-Class
  • The :lang Pseudo-Class
  • The Negation Pseudo-Class
  • Pseudo-Element Selectors
  • Styling the First Letter
  • Styling the First Line
  • Note continued: Restrictions on ::first-letter and ::first-line
  • Styling (Or Creating) Content Before and After Elements
  • Summary
  • 2.Specificity and the Cascade
  • Specificity
  • Declarations and Specificity
  • Universal Selector Specificity
  • ID and Attribute Selector Specificity
  • Inline Style Specificity
  • Importance
  • Inheritance
  • The Cascade
  • Sorting by Weight and Origin
  • Sorting by Specificity
  • Sorting by Order
  • Non-CSS Presentational Hints.