Hi, I’m trying to add a border to the image inside a (2/5) layout element. I tried using a custom CSS class, so I can target just that image, but can’t get it to work. This is the code I’m using now:
.kader1 {
border: solid 2px red;
}
I added ‘kader1’ as custom css class to the image inside the layout element.
Do you have any advice on how to get it to work?
Hi rhae,
The code you gave seems correct as well as the instruction.
Can you give us the link to the page mentioned? so that we could inspect it.
Best regards,
Nikko
yes – but you had to know that the custom class set on image alb element goes to the top parent image container ( .avia-image-container ) of your image.
sometimes this container is not the same dimension as the image itself ( f.e. on centering the image – you got some margins or paddings – then the border is not at the image itself. So if you like to have it on your img :
.kader1 img {
border: solid 2px red;
}
Thanks @guenni007, that worked like a charm :-) Solved.
Best regards, Haiko.
Hi rhae,
We’re happy to hear that :)
Thanks for using Enfold and have a great day!
@Guenni007 thanks for helping out :)
Best regards,
Nikko