Content-type: text/html Downes.ca ~ Stephen's Web ~ CSS Specificity — An overview

Stephen Downes

Knowledge, Learning, Community

This post explores the weeds of Cascading Style Sheets (CSS), the language that creates the design for web pages. CSS 'specificify' rules to the method web browsers use to select which CSS declaration to apply to a particular part of a web page. For example, if you said the default text style for your whole page is 'Arial' and the default text style for this paragraph is 'Times New Roman', your browser needs to make a choice (and will choose the latter, according to CSS specificity). There's also a link to a lovely diagram, CSS Specificity with fish.

Today: 2 Total: 1107 [Direct link] [Share]


Stephen Downes Stephen Downes, Casselman, Canada
stephen@downes.ca

Copyright 2024
Last Updated: Apr 18, 2024 10:20 a.m.

Canadian Flag Creative Commons License.

Force:yes