CSS selector for empty attribute
Posted: Tue Aug 25, 2009 10:29 am
Hello,
I'd like display links without specified target in red. In Docbook there is link element with linkend attribute. I've specified following styles:
But it don't work properly if linkend attribute is present, but empty. In documentation there is not mentioned :empty selector so I do know how to achieve correct behaviour. Thanks in advance for any tip.
Jan
I'd like display links without specified target in red. In Docbook there is link element with linkend attribute. I've specified following styles:
Code: Select all
link {
color:red;
}
link[linkend] {
color:navy;
}
Jan