Site logo

[Support request] Auto-adjustment of captions below Images

Home Forums Support [Support request] Auto-adjustment of captions below Images

Home Forums Support Auto-adjustment of captions below Images

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2465756
    Nicolas

    Hi,

    I have been using the GB Image block and I have noticed that the caption does NOT automatically adjust to the width of the image. It can go wider than the image itself as shown here.

    How can I get this fixed while ensuring it will remain good-looking whatever the size of the screen (responsiveness)?

    Thank you

    #2465879
    David
    Staff
    Customer Support

    Hi there,

    i the figcaption should have a max-width of the figure element, which can be wider then the image if the image is smaller.

    Where can i see the issue to check that ?

    #2471356
    Nicolas

    Please see the page URL in the Private info field.
    Thank you.

    #2471412
    David
    Staff
    Customer Support

    You could try this CSS:

    figure[class*="image"] {
        display: table;
    }
    figure[class*="image"] figcaption {
        display: table-caption; 
        caption-side: bottom;
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.