Home › Forums › Support › full width container for CPT single layout This topic has 7 replies, 3 voices, and was last updated 4 years, 6 months ago by David. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts September 26, 2019 at 4:47 am #1019471 jasond How can I make the CPT single layout to have max width 100% like what I’m seeing below when using Sections on Pages .sections-no-sidebars.generate-sections-enabled .container.grid-container, .sections-sidebars.no-sidebar.generate-sections-enabled .container.grid-container { max-width: 100%; } Instead .container.grid-container { width: auto; } I need to add some full-width sections on CPT layout so this would be really helpful Thanks a lot September 26, 2019 at 7:58 am #1019751 DavidStaff Customer Support Hi there, have you tried the Layout Element ? https://docs.generatepress.com/article/layout-element-overview/ September 26, 2019 at 11:50 pm #1020163 jasond thanks a lot!! i haven’t checked it out before September 27, 2019 at 7:21 am #1020388 DavidStaff Customer Support You’re welcome September 27, 2019 at 11:14 pm #1021053 jasond Can you advise the HTML markup I need to add to my single-cpt.php if i want to create a full-width section with contained inner box type? Thanks September 28, 2019 at 9:41 am #1021362 TomLead Developer Lead Developer Not too sure what you mean? If you’re adding HTML to a template file, you can do this: <div class="full-width-section"> <div class="contained-section"> </div> </div> .full-width-section is full width by default, unless it has a contained container. .contained-section needs CSS to contain itself: .contained-section { max-width: 1200px; margin-left: auto; margin-right: auto; } September 28, 2019 at 10:31 pm #1021615 jasond Thank you Tom, is there any ready class for contained-section I can use without having to create and CSS a new one? September 29, 2019 at 3:04 am #1021683 DavidStaff Customer Support The grid-container class is used in GP to set the content width Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In