tags:

views:

161

answers:

3

On one of my pages, http://artistsatlaketahoe.com/abstract.html , the Paypal buttons appear centered beneath text in FireFox and Chrome, but not in IE8. I got the centering to work in FF and Chrome by adding the following within the Paypal code snippet relating the Add to Cart image:

style="display: block; margin: 0 auto;"

Unfortunately, it isn't working in IE8. Any suggestions? Thanks!!

+1  A: 

give it a width to the button

Hey, adding the button width solved the problem. Thanks! 7 word solution!
Barry
I'm glad I can help.
A: 

add align="left";

Bruce
A: 

for IE the button needs to have a width, and the container for the button should have text-align:center; set.

/*Center the paypal button in IE*/
#paypal-button-container{
  text-align:center;
}
/*Center the button in modern browsers*/
#paypal-button{
  display: block; 
  margin: 0 auto;
  width: 100px;
}
Matthew Vines
his styles are inline :P
lunixbochs
Hopefully he can translate this to what he needs...
Matthew Vines