Hi
I have a HTML object that has text returned to from the database.
Is it possible to have a scrollbar on the on the HTML object? I understand the HTML object can be dynamic and grow as need but I want to only have the HTML object be a certain height.
Any thoughts would be greatly appreciated
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
HTML Box Scrollbar
-
- nuBuilder Team
- Posts: 4304
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: HTML Box Scrollbar
Hi,
You could add some JavaScript to show scrollbars:
Or to show a horizontal scrollbar:
Or to show a vertical scrollbar:
You could add some JavaScript to show scrollbars:
Code: Select all
$('#your_html_object_ID').css("overflow", "scroll");
Or to show a horizontal scrollbar:
Code: Select all
$('#your_html_object_ID').css("overflow-y", "scroll");
Code: Select all
$('#your_html_object_ID').css("overflow-x", "scroll");
Last edited by kev1n on Wed Nov 11, 2020 2:35 pm, edited 1 time in total.