航天飞机主题全宽

问题描述 投票:0回答:2

我想要 https://liridonigraphics.com/ 上的“RENT A CAR DONI”部分,红色背景为全宽,但主题有任何选项不允许它完成。你能帮我解决一下吗?

尝试过但没有解决:

/* Target the specific container by its class */
.elementor-container.elementor-element-d61808d {
    width: 100%; /* Make the container full width */
    max-width: 100%; /* Ensure the container does not exceed the viewport width */
    padding-left: 0; /* Remove left padding (if needed) */
    padding-right: 0; /* Remove right padding (if needed) */
    margin-left: auto; /* Center align the container (optional) */
    margin-right: auto; /* Center align the container (optional) */
}
wordpress width shuttle
2个回答
0
投票

带有 id

div
content
(如下面的屏幕截图所示)具有左右填充,可防止页面上的某些部分为全宽。尝试查看 elementor 的页面设置来找到它。

解决方法(不太好)可以是下面的

css
代码:

div#content {
padding: 0;

}

如果您只需要在此页面上应用此 css,则使用此:

.page-id-2 div#content {
padding: 0;

}


-1
投票

不幸的是,您的主题限制了内容大小,作为替代选项,您可以创建另一个页面,并在页面设置中选择元素或全角,这样您就可以创建您想要的页面和宽度。

© www.soinside.com 2019 - 2024. All rights reserved.