Jump to content

Positioning text near an HTML form


WarKirby

Recommended Posts

Hi folks.

We're having a seemingly minor problem with a bit of text positioning:

http://roshni.org.uk/Backup/Get%20Involved/Donation

 

See the central box.

The £ sign is floating above the box, when we want it to be on the left. For some reason the input box is determined to be on a line alone.

 

The relevant code is:

<div id="donationform2">
            <form method="post" action="https://www.paypal.com/cgi-bin/webscr">
                <p align="center"><input type="hidden" name="cmd" value="_xclick-subscriptions" /> <input type="hidden" name="business" value="[email protected]" />£<input name="a3" size="15"/><input type="hidden" name="p3" value="12" /> <input type="hidden" name="t3" value="M" /> <input type="hidden" name="currency_code" value="GBP" /> <input type="hidden" name="ls" value="AU" /> <input type="hidden" name="return" value="http://net.tutsplus.com/payment-complete/" /> <br /><br /><input border="0" alt="PayPal - The safer, easier way to pay
                online." src="https://www.paypal.com/en_US/GB/i/btn/btn_donateCC_LG.gif" type="image" name="submit" /> </p>
            </form>
            </div>

 

And our CSS for this div:

div#donationform2
{
position:relative;
top:0px;
left:50px;
width: 35px;
}

 

I've poked at it for a bit, but I can't seem to figure out the issue. I've tried adjusting the size of the text box, but the £ sign doesn't move down into the space that creates.

Link to comment
https://forums.phpfreaks.com/topic/217651-positioning-text-near-an-html-form/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.