The problem is actually caused by the Twitter Bootstrap CSS file, not your code.
Twitter Twitter The Bootstrap CSS file (bootstrap.min.css was the culprit of my project) underlines links several times. This gives them emphasis when they hang, when they are focused, and even makes them blue.
In my project, I specifically assigned my own colors to the text that was inside the anchor tags, and the browser displayed their colors correctly, as I assigned them, since the text was wrapped in an anchor tag, the blue underline from the Twitter Bootstrap stylesheet still appeared below all my stylized text.
My solution: open bootstrap.min.css (or something you call Bootstrap style) and search for the term “underline” and whenever you find “text-decoration: underline” inside the anchor tag selector, for example:
a:hover, a:focus { color: #2a6496; text-decoration: underline; }
or that:
a, a:visited { text-decoration: underline; }
you must go ahead and remove the rules for color and text.
This solved my problem.
source share