I have 3 DIV Elements on a website and this CSS:
#box-left, #box-middle, #box-right a {
text-decoration:none;
color:#000000;
}
it only seems to be working on the #box-right element though.
Any ideas?
You have to put
#box-left a, #box-middle a, #box-right a {
text-decoration:none;
color:#000000;
}
Each value on the comma separator list is a selector on its own, it is not combined with the next elements:
#foo, .class p, #bar p:first-child a {
something;
}
is equivalent to
#foo {
something;
}
.class p {
something;
}
#bar p:first-child a {
something;
}
[id^="box-"] a { } if you really wanted to.