Difference between :root and html

The :root selector targets the highest level parent, which would be the <html> tag in an HTML document. The :root has a higher specificity, as it is a pseudo-class instead of a plain element. CSS-Tricks has a great description on this: :root by Sarah Cope. In this example, the background of the page would be […]

Progressive enhancement of links using the CSS attribute selector

Attribute Selector Test Page We have avoided using CSS3 rules for too long. It’s been difficult to justify using rules that won’t work for a significant portion of our audience, Internet Explorer 7 and below. However, Internet Explorer 8 is coming out soon and does work with the features we like. I think it’s fairly […]