The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Customizing PayPal Buttons
Skin Blues
post Feb 9 2008, 07:59 PM
Post #1





Group: Members
Posts: 2
Joined: 9-February 08
Member No.: 4,920



I have only basic HTML skills but I've created a small website for a record label. We're accepting payments through PayPal and everything has gone fine, except I'm having trouble with the View Cart button from PayPal.

The problem: Ideally I'd like to include a link to the shopping cart in an image map that I have. I'd settle for being able to create a clickable image that will stay on the same line as the rest of my menu bar. It seems to only put the button on the line below the menubar as if I'd put a BREAK tag in between.

The code for the button:
CODE
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_cart"><input type="hidden" name="business" value="thelittleroomrecordco@gmail.com"><input type="image" src="viewcart.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"><input type="hidden" name="display" value="1"></form>


As far as I know, the problem is that there's a FORM tag in there, which automatically creates a new line. If anybody can help me keep the Shopping Cart button on the same line as the rest of the menu bar, or better yet integrate a link to the Shopping Cart within the image map (for the menu bar) then I'd be very grateful!!

To view the high-tech website rolleyes.gif you can go here: link The "View Cart" button looks fine now, but that's only because I've taken out the FORM tag. Please help!!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Feb 9 2008, 10:38 PM
Post #2


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



You can use CSS to style the form as "inline" - something like this:

FORM.inline { /* remove spurious spacing */
display: inline;
margin: 0;
padding: 0;
}

Then add class=inline to the form element.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Skin Blues
post Feb 10 2008, 07:21 PM
Post #3





Group: Members
Posts: 2
Joined: 9-February 08
Member No.: 4,920



Thank you very much, it worked perfectly on the first shot!

I don't know anything about CSS but somehow it didn't take an hour of tinkering to get it right.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 08:47 AM