BeeOnRope
BeeOnRope

Reputation: 65046

Apply style to all contained elements and the element itself

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;
}

Upvotes: 0

Views: 84

Answers (1)

Quentin
Quentin

Reputation: 944301

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

Upvotes: 2

Related Questions