Hi
I’m trying to re-create a X-Theme layout inside PRO and having challenges with having a full-width header and boxed content.
Previously, the header was not inside the site class, so the box didn’t apply to it, however now, the header is inside the x-site class, which is forcing it to fit within the boxed region.
X-Theme:
<header class="masthead masthead-inline" role="banner">...</header> <div id="top" class="site">...</div>
Pro:
<div id="x-root" class="x-root"> <div id="x-site" class="x-site site"> <header class="x-masthead" role="banner">...</header> </div> </div>
Under Theme Options:
Layout and Design > Site Layout: Fullwidth
Site Width: 88%
Site Max Width: 1100px
Content Width: 88%
I’ve also had to add the following style to keep the background color as I want it, but I also want the boxed content to have a white background.
.site, .x-site {
background-color:transparent;
}
The issues I’m noticing is the spacing appearing around the slider on the home page (not going all the way to the edge - even though it’s set to have no container.
The other issue is that the rest of the content is going to the full edge of the container (which really should have padding).
Any assistance or suggestions on how I can fix this would be greatly appreciated.
I also tried this styling tweak as a work-around, which was close, but wanted to see if there was a better solution:
.x-main.full {
max-width: 1100px;
margin: 0 auto;
}article {
background-color: white;
}