0

Sorry form my English.

Hi, I am in some references use FontAwesome and I need between the icon and remove the underlining text links, is there such a possibility?

enter image description here

<p><a href="#"><i class="fa fa-user"></i> Username</a></p>

Pattern in JSFiddle

Jeen Jay
  • 416
  • 4
  • 8
  • [`text-decoration` is the CSS property you are looking for.](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration) – Ry- May 18 '14 at 06:36
  • a {text-decoration:none;} – Ali Gajani May 18 '14 at 06:37
  • Sorry, maybe I did not exactly put the question, I do not know very well English, but the user **BillOfUK** understood me and answer all my question. Thank you. – Jeen Jay May 18 '14 at 06:46

3 Answers3

1

Remove the space and use padding inside the i tag

a:hover {text-decoration:none;}
a i {text-decoation:none; padding-right:5px}

http://jsfiddle.net/jEh6J/2/

b_uk_happy
  • 478
  • 4
  • 13
0
a:hover {text-decoration:none;}
a {text-decoration:none;}

http://jsfiddle.net/jEh6J/1/

seek.estate
  • 111
  • 1
  • 3
  • 11
0

Fiddle

If you want to remove the line between a and i, then add a padder: padding-right

a:hover {text-decoration:none;}
a i { text-decoration:none; padding-right:10px;}

Also, remove space before your text "Username". I fixed it in the fiddle anyway.

Result

enter image description here

Ali Gajani
  • 14,762
  • 12
  • 59
  • 100