Make current page on menu appear with different colour

52 Views Asked by At

Using html, css and a DW template, how do I make the font colour of the link for my current page in my menu appear with a separate colour than the other page links? I don't know JavaScript etc.

1

There are 1 best solutions below

0
On

function changecolor(colorhere){
var x=document.getElementById("text");
x.style="color:"+colorhere;
  }
<p id="text">
  Some and so on text here
</p><br>
<button onclick='changecolor("red")'>Red</button>
<button onclick='changecolor("blue")'>Blue</button>
<button onclick='changecolor("yellow")'>Yellow</button>

Change color using javascript!