Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strange underlines in font-awesome CSS

Tags:

When I hover on font-awesome's icons (when they're stacked together) like below (see picture). I get these strange underlines. Any idea where they could come from?enter image description here

Source:

<div class="text-center">   <!-- FB -->   <a href="http://www.facebook.com/share.php?u=${shareURL}" target="_blank" style="color : #555">     <i id="facebook" class="fa-3x fa fa-facebook-square"></i>   </a>   <!-- Twitter -->   <a href="http://twitter.com/?status=Sign-Up+for+SolidTranslate+here!:+${shareURL}+@SolidTranslate" target="_blank" style="color : #555">     <i id="twitter" class="fa-3x fa fa-twitter-square"></i>   </a>   <!-- LinkedIn -->   <a href="http://www.linkedin.com/shareArticle?url=${shareURL}&title=Sign-Up%20for%20SolidTranslate%20here:%20${shareURL}&summary=To%20get%20started%20translating%20SolidWorks%20files%20register%2\     0here:%20${shareURL}&source=${shareURL}"     target="_blank" style="color : #555">     <i id="linkedin" class="fa-3x fa fa-linkedin-square"></i>   </a>   <!-- Google+ -->   <a href="https://plus.google.com/share?url=${shareURL}" target="_blank" style="color : #555">     <i id="googleplus" class="fa-3x fa fa-google-plus-square"></i>   </a> </div> 
like image 806
The Internet Avatar asked Feb 24 '14 09:02

The Internet


People also ask

How do I edit underline in CSS?

In CSS, we will use text-decoration property to style underline. CSS text-decoration-color Property: This property is used to specify the color of decorations (overlines, underlines, and line-throughs) over the text.

How do I create a custom underline in CSS?

How to Underline a Title in CSS. To underline a title, you can use text-decoration: underline; but you can make it prettier if you use the border-bottom property. In the latter case, however, you need to add display: inline; so that the underline wouldn't be longer than the word itself.

What is the CSS code for underline?

The property text-decoration-line is used to underline the text. This property has three values that are overline, underline, or line-through. So, the value underline is used to underline the text in CSS. This value draws the underline beneath the inline text.


1 Answers

Those lines usually come from the default (underline) a element style.

Either use another element or remove the underline :

a.social { /* or whatever your class */    text-decoration: none; } 
like image 115
Denys Séguret Avatar answered Sep 30 '22 19:09

Denys Séguret