Archived topic
horizontal Scrollbar
1 reply · Started by Alexandre on July 28, 2021
Hello team,
I want to desactivate the horizontal scrollbar displaying on my website.
.no-sidebar .entry-content .alignfull {
margin-left: calc (-100vw / 2 +100% /2);
margin-right: calc (-100vw / 2 +100% /2);
max-width: 100vw;
width : auto;
}
Please can you help ?
Hi there,
You can use this CSS as a patch:
body {
overflow-x: hidden;
}
Looking at the layout you are creating, I'd highly recommend using GenerateBlocks to do it with the full width content container:
https://docs.generatepress.com/article/content-container/
The alignfull option from WP is a bit of a hacky way to create full width content.
Let me know if this helps :)