Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

button alignment

Status
Not open for further replies.

FranckM

Programmer
May 8, 2002
76
CA
I have a problem with the button's alignmnet. I have some text and then I have a button, I would like the middle of the text to be at the same height as the middle of the button. Is this possible?

Thanks for taking the time to read n write!
 
<td valign= center>something</td><td><input type=button>

should do the trick


hth
Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Nope, I had tryed that already and just did again to make sure. It still dosent work. Could it be that the button, once centered, dosen't have it's center and the same height as writting?
 
Hi,
Play around with it, change what bastien wrote to

<td valign=&quot;TOP&quot;>something</td><td><input type=button>

If that doesn't look better then ty something like;

<td height=&quot;30&quot; valign=&quot;center&quot;>something</td>
<td height=&quot;30&quot;><input type=button></td>

No reason why one of these won't work!!




É

endamcg-logo1b.gif

 
I still can't get it. Now what might do that is because I give a specific width and lenght to the buttons. I do this because for some odd reason the buttons are huge without me sizing them. This is my code:

<td align=&quot;center&quot;><form METHOD=&quot;post&quot; id=&quot;form1&quot; name=&quot;form1&quot; action=&quot;(url that works fine)&quot; method=&quot;post&quot;>
<input width=&quot;55&quot; height=&quot;25&quot; style=&quot;width:55px; height:25px;&quot; type=&quot;submit&quot; value=&quot;<%
(in here is some code in asp that get's the value of what will be shown on the button)
%>&quot; id=&quot;submit1&quot; name=&quot;submit1&quot;></form></td>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top