Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-27-2009, 06:17 AM   PM User | #1
icydash
New Coder

 
Join Date: Oct 2009
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
icydash is an unknown quantity at this point
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!
icydash is offline   Reply With Quote
Old 10-27-2009, 06:42 AM   PM User | #2
technica
Regular Coder

 
Join Date: Dec 2007
Posts: 106
Thanks: 0
Thanked 3 Times in 3 Posts
technica is an unknown quantity at this point
Even i want to know the answer for this
__________________
Programming & Webmaster Forum - AdSense Revenue Sharing forum
technica is offline   Reply With Quote
Old 10-27-2009, 08:25 AM   PM User | #3
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
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.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 10-27-2009, 05:21 PM   PM User | #4
icydash
New Coder

 
Join Date: Oct 2009
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
icydash is an unknown quantity at this point
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?
icydash is offline   Reply With Quote
Old 10-27-2009, 05:28 PM   PM User | #5
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
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
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:12 AM.


Advertisement
Log in to turn off these ads.