Paypal add to cart forms
- Started
- Last post
- 12 Responses
- Atkinson
I have a 160px div. Inside this there are two paypal add to cart forms / submit buttons. One is above the other. I want to have them next to each other but can't get them to do that - anyone any experience with PP shopping cart?
- PSYKHO0
How big are the buttons? Are the floating left? If they are bigger than the DIV width then the button will pop down under the other one.
Can you post a screenshot or link?
- Atkinson0
no div there, just two forms. That red outline is just the outside if the form.
Cheers...
- neverblink0
set the form with to 50% (in pixels) of the column and set it to float left
- form's widthneverblink
- you will need to add the css to both forms, so make it a class.neverblink
- Atkinson0
yeah tried that >Do I just give the form an id and go from there?
- PSYKHO0
Try this:
<style>
#div{
width:160px; float:left;
}
.left{
float:left;
}
form{
margin:0px; padding:0px;
}</style>
<div id="pp">
<form>
<img width="70" height="30" class="left">
</form>
<form>
<img width="70" height="30" class="left">
</form>
</div>Just add the hidden fields with in the form fields, copy only what you need.
- Atkinson0
thanks. Now I have this...http://www.craigatkinson...
Just need to get them on the same line!
- neverblink0
This is with the floats right? Have you set the float on both forms? Otherwise it will push the first down
- Atkinson0
the submit buttons are css, does that make a diff?
- Atkinson0
ah, yerawinner! nice one, on to problem number 2364792

