Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Opinion: Can we improve the efficiency of comma separated multiple selector targeting Re: Opinion: Can we improve the efficiency of comma separated multiple selector targeting

#110437
Senff
Participant

<< Rather than writing the .someClass part multiple times and bloating our code, wouldn't it be easier to simply state .someclass [h2, p, .subClass] { margin: 0 0 1em; } or similar? >>

I can’t remember where I read this, but this type of format was already addressed by someone/some tool. SASS? Less? Can’t recall at the moment, but indeed it would be nice if this would be included in the CSS format.