Why one CSS class can’t contain another CSS class
e.g.
.parentCSS width:100% childCSS
I really have many duplicate entries in my file because of this
Somewhere on the aspx page (one control many CSS classes) and somewhere in the CSS file (one CSS class many duplicate attributes).
Any suggestion to write proper CSS if CSS nesting is unachievable would be very helpful.
Because CSS wasn’t build that way, it doesn’t support nesting, however there is a plugin http://lesscss.org/ that allow you to create stylesheets in a more flexible way.