I have a paypal button on my site, but for some reason my theme creates a box around the button, which isn’t how it is supposed to look according to the display at the paypal site. I’ve tried the button with other themes and they doesn’t create the box around it.
I would like to get rid of this box but don’t know enough about css to make the change.
Your choices are to add a class to the paypal image and negate the border.
e.g.
<input [B]class="paypal"[/B] alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" type="image" />
Add this to the css file:
input.paypal{border:none}
Or without changing the html you can do it for modern browsers (ie7 upwards) by addressing only inputs that are type="image.
e.g.
input[type=image]{border:none}
Or remove the border styles from the original rule and apply it selectively as required by adding classes to the necessary elements. Of course this is a lot more work than the other methods and best avoided.
Hello there and thanks for your help. I understand how to add the code you say to “add to the css file”. But I don’t know where to “add a class to the paypal image”. Do I add that directly into the paypal button code?
OK great, that did it. I don’t want to push my luck, but there is something else there now that doesn’t look quite right. Now there is a slight grey shading remaining around the “pay now” button, which is subtle but still makes it feel not quite right nonetheless. Somehow the style of my site creates that. Is it equally easy to fix?