A discussion is taking place about removing a fixed width size and replacing it with a percentual value in a Discourse forum. daemon initiated the conversation, asking for help, and provided images of the desired layout. Stranik offered a solution by redefining display: flex; and setting a width using CSS selectors. However, daemon was looking for a more straightforward solution using a CSS selector for the default width.
Stranik suggested using max-width: 100%; for the .wrap selector, which daemon tried, but it only affected the header and footer. daemon then tried setting max-width and width for #main > div #main-outlet, but it got overwritten by a theme component.
Stranik provided another solution, but daemon reported that it still got overwritten. After investigating, daemon discovered that the “Easy responsive footer” and “Versatile Banner” theme components were causing the issue. The discussion concludes with daemon requesting help from theme component authors, Johani and tshenry, to resolve the issue.
This is only as a sample. You may have to grab the previous div and take care of the screen width. I have no idea what will happen on mobile devices, and it will require adding more css.
Pay attention to: display: flex;. Perhaps there are difficulties in this.
It’s the same as above, it gets overwritten from theme_11.scss.
It’s really annoying because it worked once but now not anymore.
Edit:
It’s one of the theme components, I have to figure which one.
Got it, it’s the offical “Easy responsive footer”. After removing it the site changed to 90% width.
Maybe @Johani can have a look at it because I would like to have the footer again.
Edit2:
And “Versatile Banner” is “corrupting” the width changes. Maybe @tshenry can have a look, too?