Do not use #id selectors, because they are not reusable. Good enough reason.
However, there is a nice debate here.
. css IDs are like singletons (can have only one instance), hence not re-usable.
. IDs refers specific element. Abstracting is difficult.
Points against the statement:
. using IDs are fast. (poor point. the speed gain is low and negligible)
Read the comments for more fun. | Don’t use ID selectors in CSS | Screwlewse | Don’t use ID selectors in CSS | Screwlewse | Don’t use ID selectors in CSS Posted on: July 28, 2010 / Categories: UncategorizedLately I have been testing out performance among css styles and I found that some of my very smartfriends, started asking,”why aren’t you testing using IDs for the unique sections of the page?”.This wasn’t a hard answe...