Reduce the gap of text and embedded video on small screen

  • fastener_io
    Asked on January 6, 2022 at 9:21 PM
    We are embedding videos next two the Client description paragraphs and would like to align the videos with the sub-heading for each Client. For the first client, you will see that we did this by entering spaces to drop the videoframe; however, when we optimize this for mobile use, it shows as a big gap b/ the text paragraph and the video. Is there a way to do this without creating a gap? CSS coding perhaps to resize the paragraph in which the video is embedded?
  • Billy JotForm Support
    Replied on January 6, 2022 at 9:33 PM

    Hi,

    Please inject the CSS code below to optimize the view on mobile screens:

    @media only screen and (max-width: 400px) {
     #text_8 > p:nth-child(5) {
    margin-bottom: -120px !important;
    }
    }

    Result:

    1641522775 61d7a657d1f5f  Screenshot 10

    Let us know if you need further assistance.

    Best regards,

  • fastener_io
    Replied on January 7, 2022 at 12:34 AM

    Hi, Billy_G,

    Can you specify where I would inject the code?

    Do I embed it in the question text?

    Thanks.

    1641533663 61d7d0df9be0e  Screenshot 10

  • Jeric JotForm Support
    Replied on January 7, 2022 at 2:17 AM

    Hi there,

    Thanks for getting back!

    Please inject the CSS code in the form designer. See screencast below:

    1641539797 61d7e8d5bda9b ezgif Screenshot 10
    Let me know if that works.

    All the best!