Skip Navigation

[Resolved] custom field multiline text stuck on horizontal scroll. Overflow-y not working

This support ticket is created 3 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 5 replies, has 3 voices.

Last updated by davidm-13 3 years, 10 months ago.

Assisted by: Waqar.

Author
Posts
#1933281
css.JPG
html.JPG
frontend.JPG

I'm trying to create a vertical scroll text box for a multi-line field without success.
Shows only vertical scroll.
Attached html, css and frontend.
Thanks for any help.

#1934609

Hello,

It needs custom CSS codes, I have searched it in google, and found some related results, for example:
https://stackoverflow.com/a/26647045
For your reference.

More help:
hidden link

#1934973

Hi Luo,
Thanks for your reply. I tried the css in the link you gave, but the results are exactly the same as the above screenshot.
I've spent many hours trying to sort this out without any success. Really appreciate if you could take a look.
Thanks

#1937439

It is a custom CSS problem, please provide a test site with the same problem, also point out the problem page URLs, I need to test and debut it in a live website. thanks

#1939227

Hi,

Thank you for sharing these details.

Luo is on vacation, so I'll be following up on this ticket.

During troubleshooting, I noticed that the website has a CSS style "white-space: nowrap;" which makes the text in the comment box, show in a single line, without any next line-wrapping.
( screenshot: hidden link )

You can override that for the text inside the div with class "cmnt-box", by including the "white-space: normal;" property in the existing custom CSS code in the template:


.cmnt-box {
    float: left;
    width: 300px;
    overflow-y: auto;
    max-height: 300px;
    white-space: normal;
}

regards,
Waqar

#1939293

My issue is resolved now. Thank you!