Absolute image position (dont allow to image go outide the div)
Solution 1:
When you absolutely-position an element, it will position itself inside the nearest positioned parent. So, add a position: relative
to the CSS of your element's parent.
To make sure the parent contains the positioned element, you'll want to add overflow:auto
to the parent's CSS as well.
Solution 2:
add position: relative
, to the parent div..
.parent_div {position: relative;}
.parent_div img {position: absolute; top: number; right: number;}
Solution 3:
Add this style to the image:
style="width:inherit; height:inherit;"