View Full Version : Can anyone help with a little coding problem
Tommy
2009-10-03, 12:18 PM
I fooled around with this all day yesterday
I cant get the search button to line up in the header
http://www.tommys-bookmarks.com/images/header.html
I have just about givin up on it but...
Evil Chris
2009-10-03, 12:23 PM
Try making the character width of the search bar 35 instead of 40.
virgohippy
2009-10-03, 12:59 PM
The image is a few pixels higher then the text input for me too, but I don't see anything in your CSS or HTML that would cause this behavior. |huh
I put 30 minutes into this riddle and the best I could come up with was to use a 1-row, 2-col table, put the text input and the image in separate cells, like this:
<form style="margin-top: 2px;" method="get" action="/tgpx/search.php">
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr valign="middle">
<td align="left"><input style="margin-top: 2px;" class="adborder2" name="s" size="40" value="" type="text"></td>
<td align="left"><input style="margin-top: 2px;" name="submit" src="tommys_files/search.jpg" type="image"></td>
</tr></table></form>
Tommy
2009-10-03, 01:04 PM
Virgohippy.. Thank you so Much !!!!!
and thank you Chris
Evil Chris
2009-10-03, 01:56 PM
Looks good now. Smart solution.
vBulletin® v3.8.1, Copyright ©2000-2026, Jelsoft Enterprises Ltd.