Custom Button Colours?

Questions related to using nuBuilder Forte.

Custom Button Colours?

Unread postby pmjd » Thu Jul 15, 2021 11:18 pm

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.
pmjd
 
Posts: 76
Joined: Fri Mar 12, 2021 7:08 pm
nuBuilder Version: 4.5

Re: Custom Button Colours?

Unread postby kev1n » Thu Jul 15, 2021 11:47 pm

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' });
kev1n
nuBuilder Team
 
Posts: 1996
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5

Re: Custom Button Colours?

Unread postby pmjd » Fri Jul 16, 2021 12:03 am

Fantastic, thank you yet again kev1n.
pmjd
 
Posts: 76
Joined: Fri Mar 12, 2021 7:08 pm
nuBuilder Version: 4.5


Return to General

Who is online

Users browsing this forum: No registered users and 15 guests