Hello everyone,
Is it possible to extend the width only for a specific custom page in Moodle 4?
I have created a custom page and I am trying to extend the width only for my custom page like the site admin page.
Hi Sarath,
By default for plugin Page they've this id in the body : page-mod-page-view
You can use it to target only the page module (all of it).
But it's depend what you want to achieve. Max-width mean that your page will do max 100% not that the width is 100%.
You can use width attribute and put it to 100% and/or also use min-width and put it at 100%.
css:
#page-mod-page-view {
width: 100%;
min-width: 100%;
}
But the left and the righ column will still displayed so it's 100% of the space allowed for the center column.
If you can do a capture of what you want to achieve maybee I can help you more.
Dominique.
To convert it to a fixed-width layout, simply add a fixed with to the #wrapper and set the margins to auto. Setting the margins to auto will cause the left and right margins to be equal no matter how wide the browser window is, which will cause your fixed-width layout to be positioned in the center of the browser. best steam generator irons