My HTML:
<div id="login-light" class="bg-green"></div>
My CSS:
#login-light {
background-color: red;
}
.bg-green {
background-color: green;
}
how can I make my element have the background color green when it has the class .bg-green
? I know that the CSS of an id takes priority over a class. I want to try and do this without JavaScript.