If you place boxclosed1.png
with position: absolute
inside a <div>
relatively positioned, then the image will be still absolutely positioned in relation to its parent, which will move if the browser is resized ... so does the image.
Move the image out of any container (before the </body>
closing tag) and give it a position: fixed
AND set its position in relation to the bottom
and right
of the page like
.fixed { position: fixed; bottom: 20px; right: 20px; }
Check (and resize) fiddle
BTW, I wouldn't set width
or height
neither position to the html
tag in order to avoid unexpected cross-browser results (unless you know exactly what you are doing)