Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Move the labeling of the field?

Questions related to using nuBuilder Forte.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Move the labeling of the field?

Unread post by kev1n »

That Width is just for the object (input) and not the label.

Increase the label width in custFieldLabelsOnTop():

Code: Select all

function custFieldLabelsOnTop(f, e) {
    for (var i = 0; i < f.length; i++) {
        if (jQuery.inArray(f[i], e) == -1) {

            var t = $('#' + f[i]).cssNumber("top");
            var l = $('#' + f[i]).cssNumber("left");
            var w = $('#' + f[i]).cssNumber("width");
            $('#' + 'label_' + f[i]).css({
                'top': t - 18,
                'left': l - 15,
                'width': w + 50,
                'font-weight': 'bold',
                'font-size': '24px',
                'text-align': 'left'
            });
        }
    }
}
Post Reply