简体   繁体   English

如何修复 div 溢出到我的页脚

[英]How to fix div from overflowing into my footer

Struggling to keep my footer at the bottom.努力将我的页脚保持在底部。 I get overflow issues causing some of my divs to flow onto my footer, covering parts of it.我遇到溢出问题,导致我的一些 div 流到我的页脚上,覆盖了它的一部分。

Here is a link to give you an idea of the problem.这是一个链接,可让您了解问题。 If you click on Data Science under projects you will see what I am referring to如果您单击项目下的数据科学,您将看到我指的是什么

https://emms21.github.io/User-Interface-II/ https://emms21.github.io/User-Interface-II/

 .portfolio.portfolio-gallery { position: relative; } footer { background: #D0D8DB; padding-top: 10px; padding-bottom: 20px; /* bottom: 0; */ }.section { padding: var(--padding-v) var(--padding-h); }
 <section id="projects" class="portfolio-section"> <ul class="portfolio-cats"> <li data-filter="*">All</li> <li data-filter="datasci">Data Science </li> <li data-filter="software">Software Engineering</li> <li data-filter="other">Write Ups</li> <li data-filter="pr">PR</li> </ul> <div class="portfolio-gallery"> <div class="portfolio-item" data-filter="datasci"> <div class="item-inner"> <i class="fa fa-futbol-o fa-lg" aria-hidden="true"></i> <h4>Kaggle: Using Linear Regression to predict player spring speed in FIFA 19</h4> <a class="portfolio-object" href="https://github.com/EmmS21/FIFA19-Analysis">Using Linear Regression to predict the sprint speed of players in FIFA 19.</a> <ul class="langtags"> <li class="lang"><a>Python</a></li> </ul> </div> </div>

You can make the section overflow;hidden ok您可以使部分溢出;隐藏确定

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

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