Posts tagged as:

css

Calculating a selector’s specificity

March 17, 2010

(from http://www.w3.org/TR/CSS21/cascade.html#specificity) A selector’s specificity is calculated as follows: * count 1 if the declaration is from is a ‘style’ attribute rather than a rule with a selector, 0 otherwise (= a) (In HTML, values of an element’s “style” attribute are style sheet rules. These rules have no selectors, so a=1, b=0, c=0, and d=0.) [...]

Read the full article →

Get rid of ugly yellow form fields with CSS

June 25, 2009

Why do some fields in the online form have an ugly yellow background? The culprit is the the Google toolbar that people often install in their browser. Part of the AutoFill feature is to highlight in yellow, #FFFF80, the fields that AutoFill can fill. These are form fields with names like “Name” and “Email”. How [...]

Read the full article →