Position of Custom Buttom

pb7pb7 Community Member Qubie ✭
edited September 25 in Custom Code

Position of Custom Buttom

Hi,

I have created a custom button that I want to position at middle center of the page. (I want to leave the Next button where it is bottom-right). I put together the following code from threads on this site, but it does not work. Any help to correct it would be greatly appreciated.

function createNextButton() {
var nextButtonHTML = '<input id="return" type="button" value="Submit" aria-label="Next" style="background-color: #f44336; color:white;padding: 8px 18px;border-radius: 7px;">';
    jQuery('#Buttons').append(nextButtonHTML);
}
createNextButton();
 jQuery("#return").css({"text-align": "center", "position":"absolute", "margin-top":-890px			
});



Sign In to Comment