I'm a little confused by the title, so let me clarify with an example. Let's say I have the following CSS code inside a file:
#container_1 {
width:50%;
border:1px solid black;
}
#container_2 {
background-color:red;
padding:5px;
}
If I want container_2 to have the same styles as container_1 (50% width and 1px border), is there a way to do this without repeating the CSS properties in container_2's rules?
Could it be something like this:
#container_2 {
include:#container_1;
background-color:red;
padding:5px;
}
Thank you!