Reputation: 1155
In CSS, is it possible to check if a particular class is already defined in any previous CSS, like an if statement, if (defined('.main'.) { do this} else {do that}
, something like this.
Is this possible in CSS or at least CSS 3.0 ?
Upvotes: 0
Views: 345
Reputation: 9132
try framework like http://lesscss.org/ for that. plain css do not support this.
Upvotes: 2