I have a link with two texts so you can click any of them to execute the link. I want to be able to underline the first text when hover any of them. So far I've only been able to underline when hover the first one.
CSS:
.title:hover{
text-decoration: underline
}
HTML:
<p:link href:...>
<h:outputText styleClass="title" value="Title"/>
<h:outputText styleClass="subtitle" value="Subtitle"/>
</p:link>
What CSS code I have to write in my subtitle
class to be able to do that?