After injecting the sublabels CSS code, the spacing between the images are no longer the same

  • veggies4good
    Asked on June 18, 2020 at 8:12 AM

    I need help again with this sublabel solution. Before injecting the sublabels CSS code from Patrick, the image titles are limited within the image width (or with word-wrap property).

    1592476859Screenshot 2020 06 18 The Easi Screenshot 10

    After injecting the sublabels CSS code, the spacing between the images are no longer the same because of long titles or long sublabels.

    1592476997Screenshot 2020 06 18 The Easi Screenshot 21

    How do I keep the word-wrap property and maintain the consistent spacing between the images?

  • Ivaylo JotForm Support
    Replied on June 18, 2020 at 8:22 AM

    Can you please try to inject the following CSS code in the widget:

    li {

    white-space: nowrap;

    }

    If the issue still persists, please provide the link of the form from your screenshot (where the issue persists), so we can test on it.

    Let us know if you need further assistance.

  • veggies4good
    Replied on June 18, 2020 at 10:21 AM

    Here's what happened when the code is injected.

    1592489733Screenshot 2020 06 18 The Easi Screenshot 10

    This is not the desired result. Long titles should wrap just like in the original widget without the sublabels (1st screenshot in my question).

    Here's the link to my form:  https://form.jotform.com/201694530223448

  • Jed_C
    Replied on June 18, 2020 at 11:16 AM

    Please allow me some time to test this. I'll get back to you once I have the code to fix the issue.

  • Jed_C
    Replied on June 18, 2020 at 12:15 PM

    Please replace the code provided by my colleague with the following code.

    li {

        width: 87px;

    }


    ex.

    1592496902wrap label Screenshot 10

    I hope that helps. Let us know if you have any questions or if you need further assistance. 


  • veggies4good
    Replied on June 19, 2020 at 7:25 AM

    Thank you very much! This solves my issue.