Hi All
Let's say I have a CSS with a class ("myclass"), and an ID ("myID"). I want to create rules for links (and only links) that appear in a myclass element, with (and only with) an ID of myID - or to put it another way, I only want the style to apply to links with an id of myID, that appear in elements of the class myclass.
This doesn't seem to work for me:
Obviously I've got my selectors in a muddle somewhere... where am I going wrong?
TIA
Si.
Let's say I have a CSS with a class ("myclass"), and an ID ("myID"). I want to create rules for links (and only links) that appear in a myclass element, with (and only with) an ID of myID - or to put it another way, I only want the style to apply to links with an id of myID, that appear in elements of the class myclass.
This doesn't seem to work for me:
Code:
.myclass a #myID {
some rules...
}
Obviously I've got my selectors in a muddle somewhere... where am I going wrong?
TIA
Si.
Last edited: