Welcome to the nuBuilder Forums!

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

How to change the color and height of a title in a subform?

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

How to change the color and height of a title in a subform?

Unread post by kknm »

How to change the color and height of a title in a subform?
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: How to change the color and height of a title in a subfo

Unread post by kev1n »

The height should be high enough to display Multiline.
You just have to use '<br>' to force a line break.


Inspect elements with the Developer Console (F12):

Get Started With Viewing And Changing The DOM
https://developers.google.com/web/tools ... vtools/dom

Then use JavaScript/JQuery to modify the style.


See: https://streamable.com/181xk6
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: How to change the color and height of a title in a subfo

Unread post by kknm »

kev1n wrote: Get Started With Viewing And Changing The DOM
https://developers.google.com/web/tools ... vtools/dom
I clarify the question:
I ask about changing the global style for the whole site, not just subforms.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: How to change the color and height of a title in a subfo

Unread post by kknm »

I changed nubuilder4.css, but it seems to me it would be advisable to include a style editor in the nuBuilder package to change the style of the site.
Something like skins...
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: How to change the color and height of a title in a subfo

Unread post by kev1n »

nubuilder4.css should not be modified. The the recommendation is to add your own styles in the (Setup -> ) Header.
Header
The Header is placed in the HTML5 header of nuBuilder Forte and can be used for adding...

Javascript libraries
Javascript functions
Style Sheets
CSS Styles
https://webcache.googleusercontent.com/ ... /index.php

(The nuBuilder Wiki shows errors that's why I'm linking a webcache URL)
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: How to change the color and height of a title in a subfo

Unread post by kknm »

kev1n wrote:nubuilder4.css should not be modified. The the recommendation is to add your own styles in the (Setup -> ) Header.
Header
The Header is placed in the HTML5 header of nuBuilder Forte and can be used for adding...

Javascript libraries
Javascript functions
Style Sheets
CSS Styles
https://webcache.googleusercontent.com/ ... /index.php

(The nuBuilder Wiki shows errors that's why I'm linking a webcache URL)
Adding modified styles to the setup-header has no effect !

Code: Select all

	</script>
    	<script src='libs/browse_total_rows.js' type='text/javascript'></script>
    	
	function nuHeaderTest() {
	    console.log('Functions placed here before a closing script tag are available anywhere in nuBuilder Forte');
	}
	
	</script>
	<style>    
//	.nuActionButton {background-color:#0073aa;}
.nuBrowseTitle { background-color: #FFFFB3;}

	</style>
	<script>
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: How to change the color and height of a title in a subfo

Unread post by kev1n »

You have to log in again for the changes to take effect.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: How to change the color and height of a title in a subfo

Unread post by kknm »

kev1n wrote:You have to log in again for the changes to take effect.
No, no ... Even rebooting and clearing the cache does not help.
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: How to change the color and height of a title in a subfo

Unread post by kev1n »

A reboot or clearing the cache is not necessary. Try this code:

Code: Select all

</script>
<style>    

.nuBrowseTitle {background-color:#FFFFB3;}

</style>
<script>
Last edited by kev1n on Thu May 28, 2020 10:09 am, edited 1 time in total.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: How to change the color and height of a title in a subfo

Unread post by kknm »

Yes, changing the order of the tags corrected the situation. Thank!
Post Reply