• Resolved mbruxelle

    (@mbruxelle)


    Hi again,

    I have a CSS problem with my gallery output
    When the gallery-item cells don’t have the same heights, the cell following the “last_in_row” doesn’t always goes to the beginning of the next line.

    I’ll try to explain better :

    It should be like this
    1234
    5678

    But sometimes it’s like this
    1234
    ….56
    78

    When the height of 2 is bigger for instance

    How can I prevent this ?

    Thanks!

    • This topic was modified 8 years ago by mbruxelle.
    • This topic was modified 8 years ago by mbruxelle.
    • This topic was modified 8 years ago by mbruxelle.
    • This topic was modified 8 years ago by mbruxelle.
    • This topic was modified 8 years ago by mbruxelle.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your question and the illustration of your example. I am not a CSS expert in any way, but I can offer a simple suggestion.

    I was able to reproduce your problem on my test system by removing the “Row Close” markup from the default template. That markup is:

    
    <br style="clear: both;">
    

    With the style in the template I get the proper display even with uneven-height images.

    Can you check your template and/or post a link to one of your pages that has the problem?

    Thread Starter mbruxelle

    (@mbruxelle)

    Thanks David
    I don’t know why but the Row Close code was not added to the output.
    I simply duplcated the template, selected it, and it worked. Now I have a “<br style=”clear: both;”>” added at the end of each row.

    Thanks a lot for your help!

    Marc

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update with the good news. I am marking this topic resolved, but please update it if you have any other problems with your custom template.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display problem when gallery cells have different heights’ is closed to new replies.