Re: Move the labeling of the field?
Posted: Wed Mar 24, 2021 8:36 pm
That Width is just for the object (input) and not the label.
Increase the label width in custFieldLabelsOnTop():
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'
});
}
}
}