I have simple CSS container and 3 different DIVs inside which aligned center. In each DIV, there is a image and text above of each image . This so far working fine.
However, I like to put the text over the each image of possible (center inside the image). I tried to play with this instruction (here), but couldn't get it to work. Please help!
Here is the CSS:
.containerCurve1 {
width:90%;
border:0px solid black;
text-align:center;
margin-left:auto;
margin-right:auto;
background-color:white;
border-radius: 25px;
padding:20px;
max-height: 80%;
height: 80%;
height:80vh;
}
.imgLevel1
{
margin-right:15px;
width:300px; height:260px;
background:#B2B4B3;
padding:12px;
border:2px solid #FFB652;
}
.linkImage
{
text-decoration: none;
}
Here is the HTML:
<div class="containerCurve1">
<div style='display: inline-block; vertical-align: top;'>
<a href="page1.html" class="linkImage">
<span class="titlePicture">Picture 1</span><br>
<IMG SRC="../project_img/Pic1.png" class="imgLevel1">
</a>
</div>
<div style='display: inline-block; vertical-align: top;'>
<a href="page2.html" class="linkImage">
<span class="titlePicture">Picture 2</span><br>
<IMG SRC="../project_img/Pic1.png" class="imgLevel1" >
</a>
</div>
<div style='display: inline-block; vertical-align: top;'>
<a href="page3.html" class="linkImage">
<span class="titlePicture">Picture 3</span><br>
<IMG SRC="../project_img/Pic1.png" class="imgLevel1" >
</a>
</div>
</div>