Please see the attached image. You can see the red big top area confined to the container width. Also notice the highlighted areas in browser's inspect element tool.
When an element is set to position:fixed, it doesn't follow the dimensions of it's parent. So for the demonstration purposes, I just unchecked the 'position: fixed' style definition in the inspector tool.
You can apply following CSS definition in your theme's style.css:
Thanks but I think I did not explain myself well. The navigation bar is working as it should. It expands the whole screen. What is not working is the Grey area below it which should also expand the full width. I am pretty sure there is a bug here as this feature works in the Alpha version but not in Beta. Have a look at the screenshot as it might explain it better. Cheers
Actually, Layouts follow the Bootstrap definitions, where .container is set to be responsive. In responsive manners, .container has a width of 1170px for screen sizes 1200px or above.
Since, every element is further contained in a DIV with .container class, it confines the area as inherited. While the header is using a fixed position, that's why it rules out the inheritance.
However, you can apply following CSS to make that area as wider as the page:
body div.container:first-child {
width: 100%;
}
This will expand the first container width to full width, as well as the containing elements will span accordingly. To confine the contained elements to their previous widths (i.e. original 1170px container width), you can add following CSS too:
#home_well .container {
width: 1170px;
}
Please note, the row behavior selection depends on the behavior of the parent container.
Hi Waqas, Yes I guess it makes sense. I am remembering that in the Alpha version the navbar was not fixed so perhaps thats why it worked. I will have a play with it but after new year 🙂 Have a great one.
actually I'm being pig headed now so sorry if I reopen this. I've just changed my navigation to static just to match what I have on the alpha site and its still not working. Have a look at the home page on the alpha site and you can see that the backgrounds span the entire page hidden link.
The differences between the two installs are:
wpwindow is using your own testing template and I beleive bootstrap 3
do you have a toolset bootstrap 3 template I can use as all that is available for download at the moment is bootstrap 2.