I have multiply CSS div
's within a parent like this:
<div id="homepage">
<div class="a"></div>
<div class="b"></div>
<div class="c"></div>
</div>
I am currently putting this in my CSS like this:
#homepage .a {
background-color: #ff0000;
}
#homepage .b {
background-color: #0000ff;
}
#homepage .c {
background-color: #00ff00;
}
My question is there a better way to reference this in my CSS than what I am currently doing. I have tried this but it fails:
#homepage {
.a {
background-color: #ff0000;
}
.b {
background-color: #0000ff;
}
.c {
background-color: #00ff00;
}
}