2
I am making a layout with the user’s avatar logged in, my difficulty is in keeping this green circle accompany the photo, as follows in the image below: Using position: Absolute; It is as in the photo, but when changing the screen resolution the green circle does not accompany (2 image).
Css code:
.image_inner_container{
border-radius: 50%;
padding: 5px;
background: #833ab4;
background: -webkit-linear-gradient(#fcb045, #fd1d1d, #833ab4);
background: linear-gradient(#fcb045, #fd1d1d, #833ab4);
display: inline-block;
max-width: 100%;
height: auto;
z-index: 1;
}
.green_icon{
background-color: #4cd137;
position: absolute;
right: 465px;
bottom: 170px;
height: 23px;
width: 23px;
border:3px solid white;
border-radius: 50%;
display: inline-block;
}
Html code:
<div class="green_icon"></div>
<div class="image_inner_container">
<a href="<?php echo site_url($account_type . '/manage_profile');?>">
<img src="<?php echo base_url('/uploads/'.$this->session-
>userdata('login_type').'_image/'.$this->session-
>userdata('login_user_id').'.jpg');?>" class="img-circle" width="125"
height="125">
</div>
Iae, cara! Facilite para gente aí. Poste a parte do HTML relacionada ao problema. ;)
– LipESprY
Place
position: relative;
in.image_inner_container
.– Sam
Sam, in part solved, accompanies the image, but does not remain not position indicated above.
– J. Vargas
Place the green circle div inside the photo div.
– Sam
the green circle has changed sides, but the position has not!
– J. Vargas