SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    May 2012
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Form Height for Paypal

    Hello all,

    I'm making a PayPal "buy now" button, and added a text field from their options. The problem is that it's only 200px in width, and one line in height. I need it to be wider, and roughly 350px in height. Is there a way to do this? I've tried both maxheight="", and Me.InsideHeight"" Me.InsideWidth="" but neither work. It's a <input> form.

    Help would be very much appreciated!

  2. #2
    SitePoint Enthusiast aufshebung's Avatar
    Join Date
    May 2012
    Location
    Santa Fe, NM
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you post the HTML you're working with?

    You can just use simple CSS to set the height of the <input> element. But because text inputs are only meant for one line, there will probably be some funky UI consequences. As long as you use the correct "name" attribute, I don't think there'd be anything wrong with switching to a <textarea> instead.

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,355
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    HI,
    As mentioned above you should be able to porovide a height and width for the element with css.

    e.g.
    Code:
    .paypal {
    	width:350px;
    	text-align:center;
    	font-size:200%;
    	height:100px
    }
    Code:
    <input class="paypal" type="submit" value="Buy Now">
    If you want multiline text then you'd probably need to use a button element which allows for multiple lines. (Although you can press return inside the value attribute of an input and you will get two lines in neerly all browsers although this goes against the specs as an input type=submit is a single line control)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •