The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Centering Text Input with Table Row
David zale
post Sep 17 2021, 01:31 PM
Post #1





Group: Members
Posts: 1
Joined: 17-September 21
Member No.: 28,097



Obviously I'm a beginner here but, I cannot seem to figure out how to get a text input box to be centered vertically within a table row. It is aligned with the top of the row no matter what I try. Is this possible, and if so can someone help?
Table is simple enough, number of rows dependent on record set and columns are set at 4. This is just one TD of the 4
<td valign="center"><form method='post' action='SeriesStatusByJob.asp'><input type= "text" size='64' style="background-color:<%=strBackColor%>;" Name="frmSeriesStatusComment" value="<%=varSeriesStatusComment%>" onChange='this.form.submit();'></form></td>
I'm not educated in CSS so I'm not even using it.
Any help would be appreciated
tia
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 18 2021, 04:08 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



It's valign="middle", not "center".

See: https://htmlhelp.com/reference/html40/tables/td.html . The validator tells you about mistakes like that: https://validator.w3.org/ .
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 29th March 2024 - 06:53 PM