CSS and Safari : image position -
I have a problem with the status of an image on Safari.
First, on Chrome, the result of Firefox and Internet Explorer is correct:
But there is a problem on Safari: < / p>
CSS is:
span.boy_hand {background: url (../img / hand_png.png) no-repeat; Height: 35px; Width: 51px; Status: fixed; Top: 470px; Margin-left: -32px; } Can you tell me where it comes from?
Use the left property instead of margin-left to set the image to the right place - Different browsers will be left to guess differently for positioning element. Therefore, to include left and top properties for your element, Best Practice will be included
span.boy_hand {background: url (../img/hand_png.png) No-repeat; Height: 35px; Width: 51px; Status: fixed; Top: 470px; Left: 32px; / * Set the left property according to your requirement, I'm just reusing my code * /}
Comments
Post a Comment