0
I’m creating kind of an online store, but I’m not getting to stylize my HTML right, I’d like to <div>s
empty (I put div in the example just to illustrate, but in fact are images), stay with the price at the bottom, in case I created another div with the class .linha
, but what’s happening is that I’m not sure how to handle the positions well.
How do I do it?
An example of how I want:
What I have so far:
.imagem {
background-color: black;
border-radius: 10px;
width:200px;
height:260px;
margin-left: 55px;
}
.linha{
bottom: 125px;
background-color: #2aabd2;
width: 200px;
height: 40px;
position: absolute;
border: 4px solid #99ccff;
border-radius: 0px 0px 10px 10px;
}
.pontocartao{
text-align: center;
font-family: "Arial Black";
color: #000;
}
<div style="margin-top:100px">
<div class="imagem"></div>
<div class="imagem linha"><p class="pontocartao">10 pontos</p></div>
<div class="imagem"></div>
<div class="imagem linha"><p class="pontocartao">50 pontos</p></div>
<div class="imagem"></div>
<div class="imagem linha"><p class="pontocartao">50 pontos</p></div>
<div class="imagem"></div>
<div class="imagem linha"><p class="pontocartao">50 pontos</p></div>
<div class="imagem"></div>
<div class="imagem linha"><p class="pontocartao">50 pontos</p></div>
</div>
This link may be a good suggestion, but your reply will not be valid if one day the link crashes. In addition, it is important for the community to have content right here on the site. It would be better to include more details in your response. A summary of the content of the link would be helpful enough! Learn more about it in this item of our Community FAQ: We want answers that contain only links?
– user28595
Thanks for the review
– Ciano Barbarossa