Inheriting from another style in a another style

css, html, inheritance

Solution

.Style1, .Style2 {
     background-color:white;
}

.Style2 {
     border: black solid 1px;
}

This way `Style1` and `Style2` will both have the background set to white, and only `Style2` will also have a black border.

Problem

If have a style like this: ``` .Style1 { background-color:white; } ``` And a second style like this: ``` .Style2 { border: black solid 1px; } ``` How do I get `Style2` to have `Style1` as a base style? Malcolm

Original source

Related problems