I want to make all text links at my website have a bottom border. I use:
a
{
border-bottom: 1px dotted #333;
}
… but it adds a border to image links too and I don’t want that.
How do I make it work for text links only?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just override the inherited rule, the native css way.Edit: Wow, I’m really not paying attention. Can you just throw a class to anchors that include images?
This would be the only non-scripting solution without relying on CSS3’s
notselector.