我正在构建我的第一个真正的网页,我正在尝试弄清楚如何正确地在主屏幕上堆叠元素。我已经阅读并尝试过类似的帖子,但它们似乎没有做我需要的。目前我的主页看起来像这样(忽略页面底部的列表和订阅/登录按钮。它们只是默认主题的一部分):
这是使用以下代码实现的: HTML:
Concurrency::simple_partitioner splitter(100/8);
Concurrency::parallel_for<int>(0,100,1,[&](int k) {
//a lot of logic depends on the input
},splitter);
CSS:
<div class="desc-pic-parent">
<div class="homepage-description">
<div class="homepage-description-header">
Hi! I'm Lewis Cooper
</div>
<div class="homepage-description-text">
This is a description of me. I will put quite a bit of text here so that I can get a rough idea of what it's going to look like in the final edit of the webpage
</div>
</div>
<div class="square-pretend-img"></div>
</div>