Re:Using Bootstrap the Semantic Way
by tragic on Friday February 21, 2014 @08:38AM
(#7276880)
> I have as a rule that if you are in a situation where there can only be 1 element with those properties (it would make no sense at all to have more), I should use the id.
Not a good idea: IDs take massive priority over classes in the cascade.
As someone who often has to override an enormous stylesheet which is all styled to IDs, this is a serious pain point.
Not a good idea: IDs take massive priority over classes in the cascade.
As someone who often has to override an enormous stylesheet which is all styled to IDs, this is a serious pain point.
Simple example: http://jsfiddle.net/B7tSz/