Unable to change the color of text ${jvar_count}

Mubashira
Tera Contributor

I am trying to change color from blue to black and make number thin. My current style declaration is: 

Mubashira_0-1690129828749.png

 

 

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">

<style>
p {
font-family: verdana;
font-size: 50px;
text-align: center;
font-weight: 10px;
color: #141010;

}
</style>

 

and the code that I am applying the color is:

 

  <!--Passing the tempArr length here-->
<j:set var="jvar_count" value="${count}"/>
<j:set var="jvar_query" value="${query}"/>

<p><a href="${incidentlink}${query}" target="_blank">${jvar_count}</a></p>
<!-- ${jvar_count}-->

1 ACCEPTED SOLUTION

AnveshKumar M
Tera Sage
Tera Sage

Hi @Mubashira ,

Try styling the <a> tag instead of <p>.

For quick reference visit https://www.w3schools.com/css/css_link.asp

 

Thanks,
Anvesh

View solution in original post

2 REPLIES 2

AnveshKumar M
Tera Sage
Tera Sage

Hi @Mubashira ,

Try styling the <a> tag instead of <p>.

For quick reference visit https://www.w3schools.com/css/css_link.asp

 

Thanks,
Anvesh

Thank you so much. It worked!