javascript - Current Anchor has Different Colour and scrolls? -
i curious on how set current anchor href elements different colour others.
so if there element href #home , current anchor #home should red , others should white.
i'd prefer html, css, jquery, javascript.
the anchors have scroll correct element.
thanks in advance, blazzike.
i think looking css :target()
selector.
you can find more details here: http://www.w3schools.com/cssref/sel_target.asp
hope looking for. ;)
Comments
Post a Comment