Welcome to the nuBuilder Forums!

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

Custom Button Colours?

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
pmjd
Posts: 132
Joined: Fri Mar 12, 2021 10:38 am
Has thanked: 3 times
Been thanked: 1 time

Custom Button Colours?

Unread post by pmjd »

I have a group of 4 buttons on a tab and would like 2 of them to be a different background colour to the others to seperate them.
How can this be achived?

I can put span classes inline in to change the colour/formatting of text but can't see where/how to do this for specific buttons' background.

Any help would be appreciated.
kev1n
nuBuilder Team
Posts: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Custom Button Colours?

Unread post by kev1n »

In the form's Custom Code, add a something like this JS:

Code: Select all

$('#your_button_id').css({ 'background-color': '#f38617', 'color': 'white', 'border-color':'#87521c' });
pmjd
Posts: 132
Joined: Fri Mar 12, 2021 10:38 am
Has thanked: 3 times
Been thanked: 1 time

Re: Custom Button Colours?

Unread post by pmjd »

Fantastic, thank you yet again kev1n.
Post Reply