Press in hover for image

Hello

I got help from Roman about to press in image on hover. Likewise finding images by browser tool where the images don’t will have this effect.
My website develops and right now I have this super effect only on images at pages but don’t want this on images at post pages.
Is there a way to do it more like one code instead of finding no. for each image by browser tool in post pages and put in CSS?

My website is www.becht.dk

Kind regards
Peter

Hello Peter,

Try to replace this CSS code:

#primary img:hover {
  transform: scale(0.98);
}

…with this:

.page #primary img:hover {
    transform: scale(0.98);
}

Kind Regards, Roman.

Thanks Roman

It works super

Kind regards
Peter

Great! You are welcome Peter! :slight_smile:

Please feel free to ask any other questions that you might have in future.

Kind Regards, Roman.