Home › Forums › Support › Contained layout This topic has 9 replies, 2 voices, and was last updated 4 years, 8 months ago by Leo. Viewing 10 posts - 1 through 10 (of 10 total) Author Posts August 1, 2019 at 11:50 am #973316 Slaven Hello, Can you help me please. I am trying to reproduce contained layout like https://pepperstone.com look at this screenshot: https://prntscr.com/on4ijd But I do not have margin inside contained area, look at screenshot: https://prntscr.com/on4khj How to reproduce same layout like on pepperstone.com August 1, 2019 at 12:57 pm #973378 LeoStaff Customer Support Hi there, Can you try this CSS: body { margin-left: 5%; margin-right: 5%; position: relative; } Then you should still be able to set the outer container to full and inner container to contained: https://docs.generatepress.com/article/header-layout/ Let me know if this helps π August 1, 2019 at 3:34 pm #973470 Slaven Hello, no this is not what I am trying to do. I already got this with Element seting: https://prntscr.com/on7ap7 But I need do add padding inside contained area like on https://prntscr.com/on4ijd But I do not want this padding on laptop screen, just on wider desktop screan like https://pepperstone.com Laptop screen https://prntscr.com/on7dc9 Wider screen: https://prntscr.com/on7de5 August 1, 2019 at 3:46 pm #973472 LeoStaff Customer Support In order for the container to show up differently on desktop and laptop, we would need to use media query for the code above: @media (min-width: 1200px) { body { margin-left: 5%; margin-right: 5%; position: relative; } } You can fine tune the breakpoint 1200px. August 1, 2019 at 3:53 pm #973475 Slaven I would like container to be max 1680px, not margin 5% How to do this? August 1, 2019 at 4:00 pm #973476 LeoStaff Customer Support Let’s try this: body { max-width: 1680px; margin: auto; } August 1, 2019 at 4:06 pm #973484 Slaven Great, this is what I am trying to do π Thank you π August 2, 2019 at 6:42 am #973855 Slaven Just one more thing. I need to do same thing with sticky header Sticky header is still full width https://prnt.sc/onhmwm August 2, 2019 at 9:39 am #974160 Slaven I have solution .sticky-enabled .main-navigation.is_stuck { -webkit-box-shadow: 0px 3px 7px -3px #9e9e9e; box-shadow: 0px 3px 7px -3px #9e9e9e; background-color: #fff; max-width: 1680px; margin: 0 auto; } August 2, 2019 at 2:01 pm #974334 LeoStaff Customer Support Glad you’ve figured out π Author Posts Viewing 10 posts - 1 through 10 (of 10 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In