Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unwanted double underline on <abbr> elements

The latest version of Chrome (v58) adds a dotted underline to <abbr> elements:

abbr[title], acronym[title] {
  text-decoration: underline dotted;
}

Bootstrap itself applies a dotted bottom border to <abbr> elements. This leads to an undesirable double-border effect:

enter image description here

How can I fix this?

like image 491
James Donnelly Avatar asked May 03 '17 10:05

James Donnelly


2 Answers

This can be fixed by simply adding the following to your CSS:

abbr[title] {
  text-decoration: none;
}

I've submitted this as an issue on Bootstrap's GitHub page (#22562), so hopefully Bootstrap will handle this for us in the next release.

like image 60
James Donnelly Avatar answered Sep 28 '22 09:09

James Donnelly


Either remove the text-decoration or the border-bottom.

like image 29
Stuart Avatar answered Sep 28 '22 09:09

Stuart