Jump to content
Sign in to follow this  
thibaud

Underlined links (only in posts)

Recommended Posts

thibaud

Hello, I would like to have all links in my posts to be underlined. I tried to add the following in my css file : a { text-decoration: underline; } But I only want the links in the posts to be underlined, not all the others (titles, etc). How do I do this ?

Share this post


Link to post
Share on other sites
catrina

You need to be more specific with the selector (the part with the "a"). This CSS should do the trick:

div.post-title h2.entry-title a {text-decoration: underline;}


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
thibaud

Hi catrina, your code does exactly the opposite of what I want. I need to underline only the links inside the posts. Any idea how to do this ? I agree with you, I probably need to restrict the selector in the CSS, but I don't know how...

Share this post


Link to post
Share on other sites
Kate

I believe it would be something like this:

.post a{text-decoration:none !important;}

Share this post


Link to post
Share on other sites
thibaud
Thanks, it helped me. In fact I had to use : .post p a { text-decoration: underline; }

Share this post


Link to post
Share on other sites
Eileen Starbuck
...what about underlining text in the widgets? (i.e. recent posts, categories, etc.)

"...learning, growing and sharing online!"

http://www.everythingeileen.com

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×