Site logo

Archived topic

How to remove blue underline on image?

14 replies · Started by Former User on June 6, 2020

Viewing posts 1–15 of 15

Hello,

How can I remove blue underline that is showing on image?

Thanks!

Underline showing on image comes from a tag on image to make it linkable, how I can remove line on CSS?

Thanks!

Hi there,

The image links don't have a specific class so you'd need a class like no-under-line to the image links and edit your CSS to this:

.entry-content a:not(.button):not(.no-under-line) {
    box-shadow: inset 0 -1px 0 currentColor;
    transition: color 100ms ease-in,box-shadow .13s ease-in-out;
}

Hello Leo,

I tried to place that CSS code on customizer Additional CSS and did not work, can you please tell me what CSS code to place there so the underline on image is removed?

Thanks!

Hi there,

there is no simple way of excluding the Images from your <a> tag underline styles.
Instead you could target very specific elements eg. :

a.aawp-product__title {
    box-shadow: inset 0 -1px 0 currentColor;
    transition: color 100ms ease-in,box-shadow .13s ease-in-out;
}

This will add the underline just to the Amazon product titles

Hello David,

The only thing I want is to tell me how I can remove blue underline that is showing under pools images with white background. Image is on a html tag, I don't understand why you say is so, complicate? or can you tell me how to create a class and I add to a tag?

Hello, I manage doing it with adding the following CSS:

a img {
text-decoration: none;
outline: none;
border: 0px none transparent;
}

No those links are not using any CSS class just using regular a html tag

Hi Leo,

I have tried David solution but, does not remove underline.

You will need to remove your previous CSS which is adding the underline and only use David's CSS.

This archived topic is closed to new replies.