这对某些人来说可能是一个非常重要的问题,但由于某种原因,我找不到将文本放在页面最底部的方法。如果我将位置设置为“固定”,我可以将文本放置在底部,但我只是试图将文本放置在页面底部,以便用户在滚动到时能够看到文本最底层。
这是我针对这个特定问题的当前代码。由于这是我页面的最底部,我只复制了有问题的相关源代码。
HTML
<div id = "next">
<div id = "opportunities">
<h5>I am looking for opportunities in software development area from January 2022 onwards.
My inbox is always open. Whether you have a question or just want to say hi, I will get back to you as soon
as possible!
</h5>
<p id = "footer-paragraph">Designed & Built by ABCD</p>
</div>
</div>
CSS
#next {
width: 100%;
margin: 300px auto;
margin-left: -30px;
padding: 20px;
margin: 0;
}
#opportunities h5 {
text-align: center;
margin-top: 15px;
}
#opportunities {
position: relative;
}
#footer-paragraph {
height: 50px;
text-align: center;
bottom: 0px;
left: 0px;
right: 0px;
margin-bottom: 0px;
}