Centering Text Input with Table Row |
Centering Text Input with Table Row |
David zale |
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 |
pandy |
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/ . |
Lo-Fi Version | Time is now: 29th March 2024 - 06:53 PM |