Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing underline from specific anchor tag

Tags:

css

Why does the following anchor tag has text underlined?

.pagerLink {
  background-color: #E4F5F8;
  border: 1px solid #C0DEED;
  text-decoration: none;
}
<a class="pagerLink" href="#">test</a>
like image 660
TPR Avatar asked Nov 11 '10 01:11

TPR


1 Answers

Probably because another style block has better precedence than your pagerLink class. Try:

.pagerLink {
    background-color: #E4F5F8;
    border: 1px solid #C0DEED; 
    text-decoration: none !important;
}
like image 104
Frédéric Hamidi Avatar answered Sep 22 '22 13:09

Frédéric Hamidi