视觉作曲家行中的空格

时间:2016-10-31 09:34:50

标签: html css wordpress css3 visual-composer

我的wordpress主题中的视觉作曲家行有一个奇怪的问题。

块设置为全宽,但在RTL版本中,VC行在左右两侧显示空白区域。

你可以帮我解决这个问题吗? 我试图编辑边距和填充但无法修复它。

感谢。

2 个答案:

答案 0 :(得分:2)

在style.css上创建一个有用的类。现在转到您的页面部分。查看具有html视图的页面或原始代码查找div class section-focus bg-dark,在此之前您还有另一个div class wpb_column col-md-12

.nopadding{
 padding-left: 0;
 padding-right: 0;
}

像这样添加这个nopadding类

<div class="wpb_column col-md-12 nopadding"><!-- Here you need to add that no padding class-->
<div class="section-focus bg-dark">

如果你正确地添加它,你将得到周围没有空白区域。 This 如果它不起作用然后尝试!重要如[如果你有自定义css文件,那么你不需要使用!重要]

.nopadding{
 padding-left: 0 !important;
 padding-right: 0 !important;
}

答案 1 :(得分:2)

在您的CSS中,您应如上所述使用以下内容。

.no-padding-margin {
     padding-left: 0;
     padding-right: 0;
     margin-left: 0;
     margin-right: 0;
}

Visual Composer,行设置

Visual Composer, row settings

应该在VC行中添加.no-padding-margin类。上面我已经包含了一个图像,它是ROW设置的一部分。

Visual Composer,将类添加到行设置

Visual Composer, add class to row settings