Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

HTML Box Scrollbar

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
vanman
Posts: 54
Joined: Thu Mar 01, 2018 11:09 pm
Has thanked: 1 time

HTML Box Scrollbar

Unread post by vanman »

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
kev1n
nuBuilder Team
Posts: 4581
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 536 times
Contact:

Re: HTML Box Scrollbar

Unread post by kev1n »

Hi,

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");
Or to show a vertical scrollbar:

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.
vanman
Posts: 54
Joined: Thu Mar 01, 2018 11:09 pm
Has thanked: 1 time

Re: HTML Box Scrollbar

Unread post by vanman »

Hi Kevin

Thanks Heaps Mate.

Paul
Post Reply