Tagged: link styling
-
AuthorPosts
-
December 9, 2020 at 1:27 am #1265891
Hello,
I often need to manually override the default link color when links are used against a dark background in a color section. Inline CSS does not override the default link color in these cases. What is the solution for this?Regards,
Hank-
This topic was modified 4 years, 10 months ago by
ihf-eramstad.
December 9, 2020 at 6:10 pm #1266043Hey ihf-eramstad,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaDecember 9, 2020 at 7:10 pm #1266067Provided in private – thanks.
December 10, 2020 at 12:08 pm #1266261Hi,
Thanks for that. You have this CSS applying on your site:
.avia_textblock a, #features a, #mls-attributes a, #mls-details a, .av-subheading_below a, .page-id-1772 .iconbox_content_container a, .iconbox_content_container a, .template-blog a { color: #368fa5 !Important; }Please remove it, or remove the !important bit, then your inline styling should apply again.
Best regards,
RikardFebruary 17, 2021 at 3:10 am #1281563Hi Rikard,
Thank you. I finally got to testing this. If I remove that CSS or just the !important bit, the link styling is removed across the entire site.
-
This reply was modified 4 years, 8 months ago by
ihf-eramstad.
February 21, 2021 at 9:29 pm #1282668Hi,
Sorry for the very late reply and thanks for the login. Unfortunately, I could not find the text referenced or any other text link on that page, do you have another example page?
I believe that the issue can be solved with more specific css, typically links like the ones you are trying to target are also influenced by another tag such as H1, span, p, etc.
So if your link is in a special heading element in a color section with the custom ID “features”, you would want to try#features > h2 > ainstead of#features a*for example.
If I could see examples of these links I’m sure we can sort this out.Best regards,
Mike -
This topic was modified 4 years, 10 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
