I just ran google's speed test on one of my pages and it reports many
inefficient rules. They are all of the form:
div#footer p
Is google telling me that the 'div' part is not necessary and that it
slows processing?
--
Any fool can criticize, condemn, and complain but it takes character
and
I just ran google's speed test on one of my pages and it reports many
inefficient rules. They are all of the form:
div#footer p
Is google telling me that the 'div' part is not necessary and that it
slows processing?
Most likely. Since an ID is unique to a document, the element type is
On Jul 3, 2010, at 10:57 PM, Rick Pasotto wrote:
I just ran google's speed test on one of my pages and it reports many
inefficient rules. They are all of the form:
div#footer p
Is google telling me that the 'div' part is not necessary and that it
slows processing?
yes, that is about
I normally style my IDs as follows:
#footer p { } /* I don't use DIV before # */
#nav { }
#nav ul { }
#nav ul li { }
#nav ul li a:hover, a:active { }
Notice that each line follows/builds from the one before to ensure everything
is taken care of.
To validate your HTML and/or CSS I don't think
I normally style my IDs as follows:
#footer p { } /* I don't use DIV before # */
#nav { }
#nav ul { }
#nav ul li { }
#nav ul li a:hover, a:active { }
I guess you mean:
#nav ul li a:hover,
#nav ul li a:active { }
Notice that each line follows/builds from the one before to ensure