1
Well, I’m creating a mini social network but I’m having a little problem, the profile image does not fit the div.
My code is:
<div class="profilepic"></div>
<style>
.profilepic {
width: 150px;
height: 150px;
border-radius: 50%;
background-image: url(url da foto de perfil);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
</style>
Just change the size in width (width) and height (height).
– Rafaela Lopes
Could explain better?
– Rafael Augusto
It’s always good to keep the profile image in HTML and not CSS to help with SEO.
– Rafael Augusto
Well-observed !
– Felipe Duarte