d7048cbab1909783894d7e4016ec9be7_crop.jpg

Browsers read your CSS selectors right to left.

May 30, 2010

Right to Left

One of the important things to understand about how browsers read your CSS selectors, is that they read them from right to left. That means that in the selector ul > li a[title="home"] the first thing thing interpreted is a[title="home"]. This first part is also referred to as the “key selector” in that ultimately, it is the element being selected.

via Efficiently Rendering CSS | CSS-Tricks.

Leave a Comment

Previous post:

Next post: