删除小部件的额外填充

时间:2014-09-19 09:54:02

标签: css html5 wordpress css3 web

我想减少"属性搜索"右边的额外灰色区域。顶部的小部件。该网站是一个wordpress。有人可以帮忙吗?

链接如下:

http://192.254.143.28

4 个答案:

答案 0 :(得分:0)

请将此代码添加到您的样式表中,您只需缩小width容器的property-search

.property-search-container.type1 {
    width: 581px;
}

答案 1 :(得分:0)

.property-search-container.type1 {
   background: #f3f3f3;
   display: inline-block;
   width: 585px;
   text-align: center;
 }

更改上面的CSS以更改灰色框的大小。 使用宽度属性来满足您的需求

答案 2 :(得分:0)

修改了此选择器的样式。并替换了width: auto

.property-search-container.type1 {
    background: #f3f3f3;
    display: inline-block;
    width: auto;
    text-align: center;
}

答案 3 :(得分:0)

您应该从width: auto;移除.property-search-container.type1 .dt-sc-tabs-container,以使您的白框适合灰色框。然后通过减小.property-search-container.type1

的宽度来减小灰框的大小