I want to have hover styles by reference, but not on the span that is a child of this link. I have never done this before, but I have tried it
.properties #content table th a {
color: #fff;
text-decoration: none;
}
.properties #content table th a:hover {
text-decoration: underline;
}
.properties #content table th a:hover span.sort-direction {
text-decoration: none;
}
Hover emphasis works fine, but it still emphasizes range. I think this is because the underline of the snap element will stretch to fit the range, I think.
What will be the workaround? I want span to be a link too. Maybe a combination of position: relativeanchor and position: absolutespan?
source
share