putting image always in center page(E.x image loading for ajax call), even when move scroll. how is it?
putting image always in center page(E.x image loading for ajax call), even when move
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For most browsers, you can use
position:fixedIf the image was, for instance, 40×30 pixels, you’d set
margin-left:-20px; margin-top:-15pxinstead.Here’s a jsfiddle example: http://jsfiddle.net/WnSnj/1/
Please note that position:fixed doesn’t work exactly the same in all browsers (though it’s ok in all the modern ones). See: http://www.quirksmode.org/css/position.html