页脚小部件没有在Wordpress中排队

时间:2016-01-05 18:05:32

标签: html css wordpress

我创建了二十三的儿童主题,并正在对它进行一些更新。我有一个开发站点,它几乎是实时站点的副本。我在页脚区域中唯一改变的是小部件标题样式,但我无法将3个小部件排成一行。我目前在第一行有2个,在下面有1个。如果我更改容器宽度,这似乎并不重要。

以下是该网站的新版本:http://dev.unitedconstruction.com/

以下是仍旧有效的旧网站:http://unitedconstruction.com/

任何人都可以看到我的问题所在吗?

CSS(大部分属于页脚的内容)

/* FOOTER */
.site-footer .sidebar-container, .site-footer { 
    background-color: #fff; /*#C6C6C7;*/
}

.site-footer .sidebar-container {
    min-height: 335px;
    padding: 20px 0 0;
    border-top: 0 solid #0069AA;
}

.site-footer .widget{
    width: 100% !important;
    max-width: 333px !important;
    border-bottom: 5px solid #0069AA;
    background-color: #fff;
    min-height: 358px;
    float:left;
    font-size: 14px;
    margin: 0 0 24px;
    padding: 0 0 10px 0;
    word-wrap: break-word;
    color: #333;
}


.widget .widget-title {
    font: normal 24px Arial, Helvetica, sans-serif;
    margin: 0;
}

.site-footer .widget-title, .site-footer .widget-title a, .site-footer .wp-caption-text {
    font: normal 24px 'Open Sans', Arial, Helvetica, sans-serif;
    color: #000;
    background-color: transparent;
    margin: 0;
    padding: 5px 0;
    border-bottom:2px solid #FDFDFD;
    word-spacing:0;
    text-transform: capitalize;
}

.site-footer .widget-title span{
    color: #000;
    font-weight:normal;
}
.site-footer .widget li {
    padding:0 0 10px;
}

HTML

<footer role="contentinfo" class="site-footer" id="colophon">
                <div role="complementary" class="sidebar-container" id="secondary">
        <div class="widget-area masonry" style="position: relative; height: 399px;">
            <aside class="widget widget_flexible-recent-posts-widget masonry-brick" id="flexible-recent-posts-widget-3" style="position: absolute; left: 0px; top: 0px;"><div class="frp-widget-wrapper frp-widget-">
        <div class="frp-clear"></div>
    <ul class="frp-widget">
                <li class="frp-news">
            <h3 class="widget-title"><span>united</span> news</h3>
<div class="frp-clear"></div>
<div class="frp-left">
    <a href="http://unitedconstruction.com/united-celebrates-groundbreaking-for-new-1-6-million-sf-business-park/"><img width="333" height="200" alt="United Construction" class="attachment-333x333 wp-post-image" src="http://unitedconstruction.com/wp-content/uploads/2015/12/featured-image-Phase-II-Groundbreaking.jpg"></a>
</div>
<div class="news-widget-info">
<div class="news-widget-title">
        <a class="news-widget-link" href="http://unitedconstruction.com/united-celebrates-groundbreaking-for-new-1-6-million-sf-business-park/">United Celebrates Groundbreaking for New 1.6 Million SF Industrial Park</a>
    </div>
<div class="arpw-summary">UC breaks ground on new industrial park in North Reno. The first tenant, Jarden Technical Apparel, consisting of Marmot and ExOfficio, is pre-leasing 270,000 SF</div>
</div>
<div class="frp-clear"></div>
        </li>
            </ul>
        <div class="frp-all-category-news frp-all-category-news-footer"><a href="?page_id=7">read more &gt;&gt;</a></div>
    </div>
</aside><aside class="widget arpw_widget random-posts masonry-brick" id="arpw_widget-2" style="position: absolute; left: 353px; top: 0px;">

<h3 class="widget-title"><span>united</span> projects</h3>
                <div class="arpw-block">

                    <ul>


                            <li class="arpw-clearfix">


                                    <a rel="bookmark" title="Permalink to Lake Washington Partners &ndash; SanMar Distribution Center" href="http://unitedconstruction.com/otw-portfolio/lake-washington-partners-sanmar-distribution-center-showroom/">
                                        <img width="333" height="200" title="Lake Washington Partners &ndash; SanMar Distribution Center" alt="Lake Washington Partners &ndash; SanMar Distribution Center" class="arpw-alignleft wp-post-image" src="http://unitedconstruction.com/wp-content/uploads/2015/06/featured-image-sanmar.jpg">                                  </a>


                                <h3 class="arpw-title">
                                    <a rel="bookmark" title="Permalink to Lake Washington Partners &ndash; SanMar Distribution Center" href="http://unitedconstruction.com/otw-portfolio/lake-washington-partners-sanmar-distribution-center-showroom/">Lake Washington Partners &ndash; SanMar Distribution Center</a>
                                </h3>


                                                                    <div class="arpw-summary">621,738 SFt build-to-suit distribution center features automated…</div>

                            </li>


                    </ul>
            <div class="frp-all-category-news frp-all-category-news-footer">                <a title="See More United Construction Projects" href="?page_id=32">read more &gt;&gt;</a>          </div>
                </div><!-- .arpw-block - http://wordpress.org/plugins/advanced-random-posts-widget/ -->

            </aside><aside class="widget widget_flexible-recent-posts-widget masonry-brick" id="flexible-recent-posts-widget-2" style="position: absolute; left: 706px; top: 0px;"><div class="frp-widget-wrapper frp-widget-">
        <div class="frp-clear"></div>
    <ul class="frp-widget">
                <li class="frp-news">
            <h3 class="widget-title"><span>united</span> community</h3>
<div class="frp-clear"></div>
<div class="frp-left">
    <a href="http://unitedconstruction.com/honored-by-step2-recognition/"><img width="333" height="200" alt="Thank You STEP2" class="attachment-333x333 wp-post-image" src="http://unitedconstruction.com/wp-content/uploads/2015/12/featured-image-STEP2-Thank-you.jpg"></a>
</div>
<div class="news-widget-info">
<div class="news-widget-title">
        <a class="news-widget-link" href="http://unitedconstruction.com/honored-by-step2-recognition/">Honored by STEP2 Recognition</a>
    </div>
<div class="arpw-summary">United Construction is honored by STEP2's acknowledgement during the recent Homes For The Holiday event.</div>
</div>
<div class="frp-clear"></div>
        </li>
            </ul>
        <div class="frp-all-category-news frp-all-category-news-footer"><a href="http://unitedconstruction.com/in-the-community/">read more &gt;&gt;</a></div>
    </div>
</aside>        </div><!-- .widget-area -->
    </div><!-- #secondary -->

        </footer>

1 个答案:

答案 0 :(得分:1)

我注意到的一个主要区别是小部件区域div(class="widget-area masonry")的高度不同。

损坏的网站的div高度为height: 764px,而正常运行的网站有height: 382px

这让三个div的空间叠加在一起。