admin管理员组文章数量:1122846
I'm a solo WordPress web dev who's managing this website and noticed that the website content's header and body shift to the left. I'm not sure how this happened and any advice on how to fix this would help me a lot! Thx in advance
I'm a solo WordPress web dev who's managing this website and noticed that the website content's header and body shift to the left. I'm not sure how this happened and any advice on how to fix this would help me a lot! Thx in advance
Share Improve this question asked May 11, 2024 at 23:40 PookieBearPookieBear 31 bronze badge 1- Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Bot Commented May 13, 2024 at 17:40
2 Answers
Reset to default 2The Answer by @rudtek went in the right direction. But i see no reason you would need the Padding anyway? It seems like removing
@media (min-width: 922px) {
.ast-container {
max-width: 1240px;
}
fixes the majority of your problem. After that you need to remove
@media (min-width: 922px) {
.ast-container {
max-width: 1240px;
}
}
and the White Border on the left is gone. You complained about the Text not being centered since it shiftet to the left, but this seems to be only subjektiv. If you look at the DOM placement you see that relative to the total Viewport it is indeed now centered
You've set a max width but you didn't adjust margins:
@media (min-width: 922px) {
.ast-container {
max-width: 1240px;
}
}
should be
@media (min-width: 922px) {
.ast-container {
max-width: 1240px;
margin: auto 0;
}
}
本文标签: pagesWebsite content shifted all the way to the left
版权声明:本文标题:pages - Website content shifted all the way to the left 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736307102a1933194.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论