Copy link to clipboard
Copied
I am having the toughest time trying to get an "underline" removed from text in an unordered list. I have added:
text-decoration: none;
list-style: none;
And I got rid of the bullet and any decoration on hyperlinks but this underline still remains on my listed items that are not hyperlinks. The link to the page is below under "Contact Information" at the bottom. Thank you!
Lists don't have an underline by default, so adding text-decoration: none to an <li> will have no effect.
It looks like you have a number of structural errors in your code, including some problems with a few <a> tags. The <a> tag is where the text-decoration is coming from and needs to be repaired in order to fix your problem.
Run the validation tool at http://validator.w3.org/nu to get a listing of your code errors. Repairing them will fix your issue.
Copy link to clipboard
Copied
Have you tried
a {
text-decoration: none !important;
list-style: none;
}
Copy link to clipboard
Copied
Lists don't have an underline by default, so adding text-decoration: none to an <li> will have no effect.
It looks like you have a number of structural errors in your code, including some problems with a few <a> tags. The <a> tag is where the text-decoration is coming from and needs to be repaired in order to fix your problem.
Run the validation tool at http://validator.w3.org/nu to get a listing of your code errors. Repairing them will fix your issue.
Copy link to clipboard
Copied
Thank you! I actually saw my error not too long after I posted. Thank you all again!