As nuBuilder expands to fill the whole window this may not be ideal behaviour for large widescreen monitors.
A suggestion is add the ability to define the maximum width of the nuBuilder page/site, so that if the screen is very wide the page body stops expanding to fill the whole screen and the page is kept closer to the middle. Also would mean the items on the breadcrumb holder aren't sent to the extreme left/right corners.
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.
Define Max Width of Site
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: Define Max Width of Site
Do you mean like this? (center nuBuilder with margins and max-width.)
Code: Select all
body {
max-width: 1080px;
margin: 0 auto !important;
float: none !important;
border-style: solid;
border-width: thin;
border-color: rgba(128, 128, 128, 0.28);
height: 99%!important;
}
html {
height: 100%;
}
You do not have the required permissions to view the files attached to this post.
Re: Define Max Width of Site
Close, and obviously it works.
However, I was thinking more of having a container div that everything went in, which could be styled separately to the body. So it would allow you to set specific colour(s) or image(s) for the body and the div. So rather than resorting to the unknown browser default backgrounds and making it look like an app that's cut out of place, it gives the nuBuilder coder more control to the overall site look and create a bit of contrast.
However, I was thinking more of having a container div that everything went in, which could be styled separately to the body. So it would allow you to set specific colour(s) or image(s) for the body and the div. So rather than resorting to the unknown browser default backgrounds and making it look like an app that's cut out of place, it gives the nuBuilder coder more control to the overall site look and create a bit of contrast.
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: Define Max Width of Site
Where would you fit in that container?
You do not have the required permissions to view the files attached to this post.
Re: Define Max Width of Site
Will need to get back to you on that one, will try out a few options and let you know.