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) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -