{"id":661,"date":"2010-01-07T12:43:04","date_gmt":"2010-01-07T12:43:04","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=661"},"modified":"2011-11-17T13:29:56","modified_gmt":"2011-11-17T13:29:56","slug":"the-css-cascade","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=661","title":{"rendered":"CSS Cascade Order, Inheritance, Priority and Specificity"},"content":{"rendered":"<p>The following articles give details of the resolution of styles when multiple stylesheets are cascaded, and how styles are prioritised when multiple styles affect the same element.<\/p>\n<ul>\n<li><strong><a title=\"http:\/\/www.eskimo.com\/~bloo\/indexdot\/css\/topics\/cascade.htm\" href=\"http:\/\/www.eskimo.com\/~bloo\/indexdot\/css\/topics\/cascade.htm\">This article<\/a><\/strong> is a helpful introduction to the basics.<\/li>\n<li><strong><a title=\"http:\/\/www.w3.org\/TR\/CSS2\/cascade.html\" href=\"http:\/\/www.w3.org\/TR\/CSS2\/cascade.html\">This article<\/a><\/strong> from W3.org gives the full specification, but if starting out you are advised to read the above intro first!<\/li>\n<li><strong><a title=\"http:\/\/monc.se\/kitchen\/38\/cascading-order-and-inheritance-in-css\" href=\"http:\/\/monc.se\/kitchen\/38\/cascading-order-and-inheritance-in-css\">This article<\/a> <\/strong>from David&#8217;s Kitchen\u00a0gives a\u00a0good insight\u00a0into CSS Style\u00a0<strong>inheritance<\/strong>, <strong>priority<\/strong> and the infamous <strong>specificity<\/strong> (try saying that one when you&#8217;ve had a few too many!)\u00a0 I found it easier to understand particularly on priority than the W3.org spec above, although the latter is obviously the last word on how it all works.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The following articles give details of the resolution of styles when multiple stylesheets are cascaded, and how styles are prioritised when multiple styles affect the same element. This article is a helpful introduction to the basics. This article from W3.org gives the full specification, but if starting out you are advised to read the above [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[79],"tags":[189,15,188],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/661"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=661"}],"version-history":[{"count":9,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/661\/revisions"}],"predecessor-version":[{"id":681,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/661\/revisions\/681"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}