Streaming live at 10am (PST)

Lightbox is alligned to the right

Hi there!

I’ve got a question and was hoping someone can help me out here.!

I’ve installed a lightbox in our Ecommerce shop. It seems to work nicely, however, some pictures allign to the right - and other pictures allign perfectly in the middle.

I want to allign all pictures perfectly in the middle. Does someone know what I should do?

Thanks in advance!

Best regards,
Thomas


Here is my site Read-Only: Webflow - The Baby Goat

This is the page I’m referring to:

Add an “HTML Embed” element at the bottom of your hierarchy and put the below code in it including the dot before the word “figure”.

.figure{width:100%}

1 Like

Hi Paul,

Thank you for your quick reply.

I’ve put in the HTML Embed, but it still doesn’t seem to work. I’m referring to the following error, some pictures are shown in the middle, and some allign to the right (2):


Can you help me out? Thanks a lot!

Best regards,
Thomas


Here is my site Read-Only: Webflow - The Baby Goat

This is the page I’m referring to:

thebabygoat.de

That’s odd. The class applied to the image has changed. The code to use now would be;
.w-lightbox-figure{width:100%}

It may be better to add the style tags too.

<style>.w-lightbox-figure{width:100%}</style>

1 Like

Unbelievable. That is amazing. Works. Thank you so much!!

1 Like