Like our free content? Then you'll love our exclusive Club!
Divi Academy Membership gives you exclusive access to over 110 resources, including child themes, layouts, cheatsheets, tutorials, live training and member perks. And new content is added EVERY Monday!
So this has been asked a few times around the Divi community but I haven’t seen a simple solution. How do I use the boxed layout option but keep my menu fullwidth? The answer is you can’t, at least not using the current Divi settings. So here is a Quick Snack to fix that for you.
Here’s an example of what we are going to create.

So let’s get cooking!
Cooking time
This should take you around 5 minutes max.
Preparation
The first thing we need to do is set up our layout. So navigate to Divi>Theme Customiser>Header & Navigation>Primary Menu Bar and select the Fullwidth Menu option, the hit Save & Publish.

Method
So now we have our fullwidth menu, we need to fake the look of a boxed layout for the main content and we’ll do this by limiting the width of the main content and adding a box shadow via CSS.
Copy and paste the CSS below into your Child Theme style.css or if you aren’t using a child theme (which you really should be) then paste into the Divi Theme Options epanel custom CSS section.
What we are doing here is limiting the width of the main content container to 80%, aligning the content centrally using the margin:auto property and adding a shadow effect to the main content container to mimic the effect of the boxed layout.
#main-content {
max-width: 80%;
margin: 0 auto;
box-shadow: 12px 0 15px -4px rgba(215, 215, 215, 0.8), -12px 0 8px -4px rgba(215, 215, 215, 0.8);
}
Now as we have the customiser set to fullwidth, the footer bar is going to be fullwidth too, and that maybe what you want. But if you want the footer bar to be boxed too then add the same CSS for the footer as well
#main-footer {
max-width: 80%;
margin: 0 auto;
box-shadow: 12px 0 15px -4px rgba(215, 215, 215, 0.8), -12px 0 8px -4px rgba(215, 215, 215, 0.8);
}

And that’s it, easier than you thought it would be eh?.
If you found this helpful please leave a comment and subscribe to my newsletter for all my latest Divi related content. ![]()
Michelle X





Thanks a bunch for posting this. Was a great help as I work on my website at 11:00pm (my brain not functioning well : )
Haha, I know the feeling
Excellent! Thanks Michele. Just what I was looking for
Hi Michelle, nice going, this is one of 2 tutorials on this that I’ve found.
I’m a beginner with css and, while I did everything it said, the layout is the same. Do I need to also add a class selector first? If so, what do I need to write to make it change the layout of all posts and/or the whole site?
Thanks in advance, awesome work!
You should just be able to add the CSS as shown. Do you have a link and I can take a look.
Exactly the style I was going for. Thank you so much.
Hi Michelle,
Thank you for this trick.
What if we want also the header (navigation menu) to be boxed?
Another question: How to get the same space we have on the sides(right and left), have the same space on the top and bottom?
Thank you for your help
In that cause there is no need for this tutorial, just used the boxed layout option in the customiser.
To get the space either side add some margin to the container:
#content-area {
margin: 0 50px;
}
Hi,
How would you go about adding the drop shadow around the whole of the website (including the top and the bottom of website) if your menu is set to ‘slide in’ and you don’t have a footer?
I notice that the CSS only works for the left and ride side.
I would need a link to check your setup please.
Hi, how would you disable this for mobile? At the moment the content is still at 80% width on mobile too, which makes it quite narrow.
Thanks
You can wrap it all in a media query, so take the complete CSS you are using and add it where it says ‘add here’
@media only screen and (min-width: 479px) {
add here
}
Thanks a lot Nunan.
Just what I needed. work nice with my site.
Welcome
Hi,
Imagine you have to create a page with a fixed (1080px) width and a 1080px full width styled fixed menu across a background while maintaining transparency on both sides of the menu. You would also need to apply an unbroken shadow along the entire page, how would you go about that?
Cheers,
Ward
I’m sorry ward I don’t understand what you mean, do you have an example I can look at?
Hi Michelle.. I initially thought why would people need this tutorial………………… until I needed it today………… hahahahahaha you’re a lifesaver Michelle.. big hugs to you..
Thanks Andrew!, yeah that was an odd one but funnily enough a few people had asked how to do it so you never know