简体   繁体   English

删除博客底部的空白

[英]Removing the white space at the bottom of blog

I'm new to the programming world.... I'm having trouble removing the white space at the bottom of my blog. 我是编程世界的新手。...我无法删除博客底部的空白。 I've tried researching everywhere and trying different things but nothing seems to work. 我已经尝试过在所有地方进行研究并尝试不同的方法,但是似乎没有任何效果。 Here's my blog, http://goneintranslation.blogspot.ca/ . 这是我的博客, http://goneintranslation.blogspot.ca/ If you scroll down to the bottom of the blog there's this white gap, does anyone know how to get rid of that white gap/ reduce it? 如果您向下滚动到博客的底部,就会有这个空白,有谁知道如何消除/减少空白?

Many thanks. 非常感谢。

.region-inner.main-inner {
    padding-bottom: 0px;
}

And get rid of the <footer></footer> , as there's nothing in it. 摆脱<footer></footer> ,因为其中没有任何内容。

For this kind of think, I like to open up Chrome's DevTools and click on the little magnifying glass icon (it'll say something along the lines of clicking on an element to inspect it, when you roll over the icon). 对于这种想法,我喜欢打开Chrome的DevTools并单击小放大镜图标(当您将鼠标悬停在该图标上时,它会在单击元素进行检查时显示类似内容)。

Then, just move your mouse on top of the area. 然后,只需将鼠标移到该区域的顶部即可。 You'll notice that there is a div with the classes region-inner and footer-inner You can add a CSS rule such as: div.region-inner.footer-inner { display:none; } 您会注意到存在一个带有region-innerfooter-inner类的div 。您可以添加CSS规则,例如: div.region-inner.footer-inner { display:none; } div.region-inner.footer-inner { display:none; } and it will be hidden. div.region-inner.footer-inner { display:none; } ,它将被隐藏。 (This is assuming you don't have access to the HTML, in which case you could just delete that code) (这是假设您无权访问HTML,在这种情况下,您可以删除该代码)

Using this same technique, you will then see that there is a div with the classes region-inner and main-inner that has a padding-bottom property set to 65px. 使用相同的技术,您将看到存在一个div ,其中divide region-innermain-inner类的padding-bottom属性设置为65px。 This is creating even more white space at the bottom. 这将在底部创建更多的空白区域。 Create a CSS rule to adjust that padding-bottom to be whatever you'd like it to be. 创建一个CSS规则,以将该padding-bottom调整为您想要的padding-bottom

When trying to find these kind of spaces, I use the developer tools of Chrome. 尝试查找此类空间时,我使用了Chrome开发人员工具。 Hovering over the source code can display the boxes covered by the stylesheet. 将鼠标悬停在源代码上可以显示样式表覆盖的框。 You can collapse the divs and other tags. 您可以折叠div和其他标签。

This showed me the following: 这向我显示了以下内容:

.footer-inner adds a total padding of 30px (15 top, 15 bottom) .main-inner gives you padding-bottom: 65px. .footer-inner总填充为30px(顶部15,底部15)。main-inner为您填充底部65px。

Hope this helps. 希望这可以帮助。

Stretsh Stretsh

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM