English 中文(简体)
我网站上的白色空间在哪里?
原标题:Where are the white spaces on my website from?

I use WordPress on http://galnanyheter.com/ and for some reason, I get white space between my post (see picture). Have been looking into the code of my theme, and used the Firefox Web Developer add-on but can not find where they come from.

Someone who can help me where the white spaces will come from?enter image description here

最佳回答

您的区块可能会在浮构件上没有具体高度,而第一点点似乎在另一块地右上坐。

To fix the issue you might choose to set a fixed height on the floated elements ie

.entry2 {
    float: left;
    height: 300px;
    margin: 0;
    padding: 0 25px 0 0;
    width: 295px;
}

Or you may wish to have a clearing element beneath each set of 2 floated elements ie

<img style="float:left;"/><img style="float:left;"/>
<div style="clear:both;"> </div>
问题回答

添加<代码><div>围绕您的栏目>。 然后从<条码>上删除<条码>。 在《规则》中,《规则》将《规则》定在<>auto ! important;只是为了推翻违约风格。

Demo:http://jsfiddle.net/ThinkingStiff/rBZFn/

传真:

<div id="sub-content">

CSS:

#sub-content {
    column-count: 2;
    column-fill: balance;
    column-gap: 0;
    float: left;
    width: 640px;
}

.entry2 {
    width: auto !important;
    height: auto !important;
    float: none !important;
}

Output:

“enterography





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签