user1753971
user1753971

Reputation: 81

Margin left right Align different in firefox and chrome

I was developed my watching firefox only.after complete i open my site in chrome..then i seen alignment problem...

Code Below

<span class="fbtopbutton"> <div id="left"> <a href="#"><img src="/images/fb-login.png"></a> </div></span>

i using this code in not proper place of the html code..(because of some php code limitation..)thats why using margin-left top and right

Css code .fbtopbutton{ position: absolute;margin-top: 5px;margin-left: 27px;}

In firefox view firefox view In Chrome View enter image description here

Upvotes: 0

Views: 1813

Answers (1)

user1726343
user1726343

Reputation:

Try:

.fbtopbutton{ position: absolute;top: 5px;right:(however far from the right you need it to be)}

Ensure that the parent is also positioned absolutely or relatively.

Upvotes: 0

Related Questions