I wonder if there is any possible way to change a property labelusing css to match the line inside its tag. Example. I like to change the day of the week with its own color: Mon = yellow, Tue = Pink ... Sun = red.
This is a toggler label property. I wish I had a way to mimic this.
input[type=checkbox]:checked + label {
background:#0099cc;
border-radius:3px;
color: #ffffff;
font-weight:bold;
padding:0px 3px 0px 3px;
}
So, I expect the code to do something like this with the shortcut:
input[type=checkbox]:checked + label[id=1] {
background:#0099cc;
border-radius:3px;
color: #ffffff;
font-weight:bold;
padding:0px 3px 0px 3px;
}
I'm not very good at css, please suggest.
source
share