Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Oct 2009
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    cant get my input fields' text to be valign centered

    hey guys, so i have a form, with a field:

    <input type=text id="email" name="email" value=" Email address" tabindex=1 style="height: 23px; width: 240px; font-family: Arial; font-size: 12px; font-weight: bold; color:#91C2DA; border-width:3; border-color: #91C2DA; border-style:solid; background-color: #C9E5FD; vertical-align: middle">

    And for whatever reason, all the characteristics work Except the vertical-align for the text. I've tried all different modifications, but none seem to work. Is there something obvious I'm missing here?

    Thanks!

  • #2
    Regular Coder
    Join Date
    Dec 2007
    Posts
    107
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Even i want to know the answer for this
    Programming & Webmaster Forum - AdSense Revenue Sharing forum

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    How about
    Code:
    <style type="text/css">
    	
    	#email{
    	padding:5px 0;
    	/*height: 23px;
    	vertical-align: middle
    	*/
    	width: 240px; font-family: Arial; font-size: 12px;
    	font-weight: bold;
    	color:#91C2DA; 
    	border:3px solid #91C2DA
    	background-color: #C9E5FD; 
    	}
    	</style>
    Code:
    <input type="text" id="email" name="email" value="Email_address" >
    ?

    PS: You may find it hard to get the submitted values from an input element having blank spaces in the name attribute value.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #4
    New Coder
    Join Date
    Oct 2009
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok great thanks I will give this a try later and let you know how it goes -- unfortunately I don't have any free time until tonight.

    Thanks for the PS comment, that's definitely good to note-- but I don't think I have any spaces in the name/id values in my original post, just the value field?

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Quote Originally Posted by icydash View Post
    Thanks for the PS comment, that's definitely good to note-- but I don't think I have any spaces in the name/id values in my original post, just the value field?
    Sorry, it's my mistake
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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