Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
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?
-
- 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?
How to change the color and height of a title in a subform?
-
- 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
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
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
-
- 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
I clarify the question:kev1n wrote: Get Started With Viewing And Changing The DOM
https://developers.google.com/web/tools ... vtools/dom
I ask about changing the global style for the whole site, not just subforms.
-
- 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
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...
Something like skins...
-
- 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
nubuilder4.css should not be modified. The the recommendation is to add your own styles in the (Setup -> ) Header.
(The nuBuilder Wiki shows errors that's why I'm linking a webcache URL)
https://webcache.googleusercontent.com/ ... /index.phpHeader
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
(The nuBuilder Wiki shows errors that's why I'm linking a webcache URL)
-
- 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
Adding modified styles to the setup-header has no effect !kev1n wrote:nubuilder4.css should not be modified. The the recommendation is to add your own styles in the (Setup -> ) Header.https://webcache.googleusercontent.com/ ... /index.phpHeader
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
(The nuBuilder Wiki shows errors that's why I'm linking a webcache URL)
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>
-
- 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
You have to log in again for the changes to take effect.
-
- 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
No, no ... Even rebooting and clearing the cache does not help.kev1n wrote:You have to log in again for the changes to take effect.
-
- 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
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.
-
- 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
Yes, changing the order of the tags corrected the situation. Thank!