-
AuthorPosts
-
January 6, 2018 at 6:24 pm #894158
Hi all, I realize this is a basic CSS question, but I’ve been working on it for a while and it’s been driving me crazy. I’ve researched the topic but haven’t found anything that works.
I would like to underline the costume links in the lists on the right side of this page: http://thechildrensballet.com/costumes. This is not a sidebar, just a column. The links should operate like all other body text links on the site, with underlines on a:link and no underlines on a:hover. Instead, these list links operate the opposite way — they show no underline on a:link and show an underline on a:hover.
I’ve tried using ID’s and classes for the UL, the LI and the links in the Quick CSS, but nothing seems to be working. I’ve used !important as well.
If you could provide some guidance, I would really appreciate it. Thanks!
- This topic was modified 6 years, 11 months ago by johnjosephjohansson.
January 6, 2018 at 9:12 pm #894204Hey johnjosephjohansson,
Can you please disable caching and minification while we are helping you? We need to be able to test css rule that we write.
Best regards,
VictoriaJanuary 6, 2018 at 9:50 pm #894212Thank you, Victoria! I have disabled caching and minification.
John
January 6, 2018 at 11:25 pm #894254Hi,
I added the custom classes option to your child theme for the layout builder, by adding this code to your child theme functions.php file in Appearance > Editor:add_theme_support('avia_template_builder_custom_css');
Then I went to the bottom of your text block element and added “costumes” as the css class.
Then I added this code in the General Styling > Quick CSS field:.costumes a { color: #155563 !important; text-decoration: underline !important; } .costumes a:hover { color: #155563 !important; text-decoration: none !important; }
I wasn’t sure if you wanted to use the same colors, so you can change that if you like.
Best regards,
MikeJanuary 7, 2018 at 3:47 am #894275Thanks, Mike! I really appreciate your help. That worked perfectly.
January 7, 2018 at 6:41 am #894307Hi,
Great, glad we could help :-)
Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardJanuary 8, 2018 at 5:46 am #894590Thanks — you can close the ticket.
John
January 8, 2018 at 7:03 am #894619 -
AuthorPosts
- The topic ‘How to underline link text in lists with CSS’ is closed to new replies.