Apply style to all contained elements and the element itself

BeeOnRope :

In a CSS stylesheet, I would like to apply a style to all descendants of an element (identified by id="outer"), as well as the element itself. Is there a more succinct or DRY way to do it than this:

#outer, #outer * {
    border: medium solid;
}
Quentin :

No. There isn't. That is as succinct as it gets.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=368516&siteId=1