Hello there!
I’m on my last Web Design Project, building my Personal Portfolio Page. (Yay!)
I used CSS Grid for arranging my projects in the projects section. I’m using the grid property for the first time, so I’m a bit lost.
I’ve at least arranged my 6 project-tiles in a way that I wanted them to.
But I do wanna put some text underneath the tiles. As you can see in the screenshot below, the text is on top of the tiles.
How do I get the text below the tiles?
Do <p>
elements need to be grid-items as well? Or do I use the position-property?
I appreciate any help! Thanks so much in advance!
Sarah
At the moment the project-section looks like this:
html-code:
<section id="projects">
<h4>Here are some of my projects:</h4>
<div class="projects-grid">
<div class="project-tile 1">
<iframe
src="https://www.youtube-nocookie.com/embed/DvCP5YFl6KQ" allowfullscreen
class="project-tile 1"
width="560" height="315"
frameborder="0"
allowfullscreen
></iframe>
</div>
<div class="project-text">
<p>Gaming-Review of Hades</p>
</div>
<div class="project-tile 2">
<iframe src="https://www.youtube-nocookie.com/embed/clyUgAHREMw"
width="560" height="315"
frameborder="0"
allowfullscreen></iframe>
</div>
<div class="project-text">
<p>Show about jobs in eSports</p>
</div>
<div class="project-tile 3">
<img src="https://www.dropbox.com/s/sakyy8co5n71cwj/For%20personal%20page.jpg?raw=1"
alt=""
target="_blank"
width="560" height="315">
</div>
<div class="project-text">
<p>Webdesign-Project of a product landing page</p>
</div>
<div class="project-tile 4">
<img src="https://www.dropbox.com/s/mi6cj4k9ic5hg96/Preview%20Heavy%20Bullets.jpg?raw=1"
alt=""
width="560" height="315">
</div>
<div class="project-text">
<p>Gaming-Preview of Heavy Bullets</p>
</div>
<div class="project-tile 5">
<img src="https://www.dropbox.com/s/9z76maxauq78qg6/Parks%20in%20AC.jpg?raw=1"
alt=""
class="project-tile 5"
width="560" height="315">
</div>
<div class="project-text">
<p>Article about beautiful parcs</p>
</div>
<div class="project-tile 6">
<iframe class="project-tile-bundle"
scrolling="no"
id="hearthis_at_track_5533807"
width="560" height="150"
src="https://app.hearthis.at/embed/5533807/transparent_black/?hcolor=&color=&style=2&block_size=2&block_space=1&background=1&waveform=0&cover=0&autoplay=0&css="
frameborder="0">
<p>Listen to
<a href="https://hearthis.at/swayyay/1live-gamescom-2020-vr-spiele-must-zock-26.8.20/"
target="_blank">1LIVE GAMESCOM 2020 - VR-Spiele Must-Zock</a> <span>by</span><a href="https://hearthis.at/swayyay/" target="_blank" >Swayyay</a> <span>on</span> <a href="https://hearthis.at/" target="_blank">hearthis.at</a></p></iframe>
</div>
<div class="project-text">
<p>The best VR-Games so far</p>
</div>
CSS-Code:
#projects {
background: #2ECCFA;
background: var(--nav-color, #2ECCFA);
padding: 5px;
}
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
grid-row-gap: 150px;
padding: 20px 0 150px 60px;
}
My whole project in CodePen:
https://codepen.io/Mauzzz/pen/QWKOXmB