Archived topic
Narrow Page Template
1 reply · Started by Thomas on October 31, 2017
What would be the best way to create a narrow width page for certain posts/pages? Max-width: 840px on desktop as well as centering.
I know i could add a php with custom code but i was wondering if there is a better way.
See url for example.
I just did a quick div for illustration reasons.
Could i maybe use a tag? and then change the width of the container?
Hi there,
If you use Tom's Simple CSS plugin, it gives you a CSS metabox for each page, then you can add this CSS to change the width for a specific page like this:
body .grid-container {
max-width: 840px;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/#simple-css