I have this site whereby I want to put an image in a fixed positon on a site relative to the div that it is in. So I've read about it and it's not coming out the way I want it so I'm looking for assistance. What I want to do is this
But I have this
The code I'm using on the image in the HTML is this.
The code in the CSS file is this
But I have this
The code I'm using on the image in the HTML is this.
Code:
<div style="position:relative;"><img src="images/shani.png" class="pos_fixed"/></div>
Code:
div.pos_fixed { /*position:inherit;*/ position:absolute; top:461px; /*right:5px;*/ left:0px; }
Comment