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: chrome, firefox and Results on Internet Explorer

But there is a problem on Safari:  Results 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

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -