0
I am trying to apply a margin on a div and in no way works.
I have my HTML:
<div class="side-menu-user-infos">
<div class="side-menu-user-photo">
<img src="http://pluspng.com/img-png/user-png-icon-male-user-icon-512.png">
</div>
</div>
And my CSS:
.side-menu-user-infos {
background: #FFF;
display: block;
height: 190px;
border-bottom: 1px solid rgb(155, 158, 162);
position: relative;
margin: 0 auto;
}
.side-menu-user-photo {
border-radius: 50%;
width: 40%;
height: 100px;
margin: 0 auto;
position: relative;
box-shadow: 1px 1px 10px;
}
img {
width: 100%;
height: 100%;
}
The result of this is:
How I wanted you to stay:
No kind of margin works where I’m wrong?
Thanks, Sam Already helped me more than once :), thanks! I need to read a little more about the use of the values that can be assigned in tags!
– Fernando Munhoz
Tmj friend! ;)))
– Sam