1
Dear friends, good afternoon!
I need help to create a div with background image.
I made that code:
.this-image{
//border: 2px solid #AD235E;
border-radius: 150px;
width: 200px;
height: 190px;
background-position: center;
background-color: #C0C0C0;
}
section{
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
width: 90%;
margin-left: auto;
margin-right: auto;
}
<section>
<article>
<div class='this-image' alt="título um" style="background-image: url(img/test.jpg);"></div>
</article>
</section>
but when I test at large resolutions the image does not scale, leaving a bench space beside.
I would like the image to increase a little, to the point of interruption where I would leave another similar div side-by-side.
Thank you in advance!
What do you mean? The circular div has fixed dimensions. It will always have the same size in any resolution.
– Sam
yeah, that’s what I wanted help with, you know, whether there’s a way to increase or decrease, it doesn’t necessarily have to be with this css structure
– Felipe Cristiano