-
AuthorPosts
-
June 7, 2018 at 3:22 am #968153
I use both “slightly increase image” and caption with overlay. The image increases in width and becomes wider than the overlay.
Is this a bug or normal behaviour? How to fix it?
Many thanks! :)
June 8, 2018 at 10:18 pm #970195Anyone can help me with this, please? I can’t find the answer in the forum.
Thanks in advance.June 9, 2018 at 4:12 pm #970443Hi Steve,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
.av-caption-image-overlay-bg { min-height: 190px; min-width: 200px; left: -10px; }
If you need further assistance please let us know.
Best regards,
VictoriaJune 10, 2018 at 12:34 am #970575Thank you, Victoria. This works, but not quite what I was after. This increases the overlay, to match the size of the enlarged image.
The image increases in width, which breaks the look I’m after. Is there a way to make the image increase inside of the 180×180. Or else, (even better) to make it uniformly increase in height as it increases in width?
Many thanks in advance!
- This reply was modified 6 years, 6 months ago by Steve.
June 12, 2018 at 5:19 am #971514Hi,
The image increases in width, which breaks the look I’m after.
The option “slightly increase image” does that which is what was set in the first place. Please try this css code to limit the width of the image container.
.av-hover-grow { max-width: 180px; max-height: 180px; }
You may need to apply a unique css class attribute to those images because this modification will affect every image element in the site.
Best regards,
IsmaelJune 13, 2018 at 6:50 am #972062Thanks for this! :)
So, I’d use
my-unique-css-class {
max-width: 180px;
max-height: 180px;
}
Or do I need to ad anything else? Not sure how to use css corretly with the css classes.
Thanks :)June 14, 2018 at 5:52 am #972617Hi Steve,
A class always has a dot in front of it, so in your case it would look like this:
.my-unique-css-class { max-width: 180px; max-height: 180px; }
Best regards,
RikardJune 14, 2018 at 6:24 am #972626Thank you to the awesome E team! :)
This is resolved.
June 14, 2018 at 4:24 pm #972880 -
AuthorPosts
- The topic ‘Image mouseover overlay is smaller than the image’ is closed to new replies.