4 replies [Last post]
ignatz2000
ignatz2000's picture
Offline
newbie
Last seen: 5 years 20 weeks ago
Timezone: GMT-8
Joined: 2009-10-16
Posts: 10
Points: 14

Can anyone help i'm trying to align a text field to a button with the code below Im not sure what i'm doing wrong and its sooo frustrating! the actual webpage can be seen at http://www.juncgallery.com/emailtest2.htm

If anyone can help i would really apreciate it,
Thanks!!

.submit { vertical-align: middle; *vertical-align: text-bottom; }

Email:

ignatz2000
ignatz2000's picture
Offline
newbie
Last seen: 5 years 20 weeks ago
Timezone: GMT-8
Joined: 2009-10-16
Posts: 10
Points: 14

the code

sorry the code from the last post didnt make it

<STYLE type="text/css">
 
.submit { vertical-align: middle; *vertical-align: text-bottom; } 
 
</STYLE> 
 
<form method="post" action="sendmail.php">
  Email: <input name="email" clas= "submit" type="text" STYLE="color: #999999; font-family: arial; font-weight: bold; font-size: 12px; background-color: #FFFFFF;" size="10" maxlength="40"/>
 
  <input  type="image" src="/images/submitimg.gif" width="19" height="19"/>
</form>

ignatz2000
ignatz2000's picture
Offline
newbie
Last seen: 5 years 20 weeks ago
Timezone: GMT-8
Joined: 2009-10-16
Posts: 10
Points: 14

In case I wasnt clear I want

In case I wasnt clear I want to align the submit button so that it doesnt sit higher or lower than the text field but is aligned to the middle of the text field.

Deuce
Deuce's picture
Offline
Guru
Somewhere, USA
Last seen: 4 years 51 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

MODS: please close this

MODS: please close this thread.
Discussion is here - http://csscreator.com/topic/aligning-text-field-button-0

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 7 years 38 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Don't create duplicate threads

ignatz2000, please don't create duplicate threads. Thread closed.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference