Annoying table problem

liunx

Guest
I wonder if anyone can help i am trying to get a search box to center in the middle of table on a bar. i have tried everything i know to make it stay in the middle but it keep moving to the top.<br />
<br />
I am using frontpage to do this and when i go to preview it moves back to the top have uploaded the header and its still in the wrong place.<br />
<br />
I know this is a little hard to explain so better if i put a link to the problem.<br />
<br />
Web Page (<!-- m --><a class="postlink" href="http://www.pcmanauls.com">http://www.pcmanauls.com</a><!-- m -->) <br />
<br />
Hope somone can help before i loose the last bit of hair i have left.<br />
<br />
Bob<!--content-->Hi Bob.<br />
<br />
I'm not familiar with front page but you need to change line 75 of your code.<br />
<br />
<p align="right"><br />
<input type="submit" value="search" class="button"></form><br />
<br />
to read:<br />
<br />
<p align="left"><br />
<input type="submit" value="search" class="button"></form><br />
<br />
which seems to work: or<br />
<p align="center"><br />
which is still a bit right of center.<br />
<br />
Hope this helps <br />
<br />
Gord<!--content-->replace the <td> with <td valign="center"><!--content-->Thanks for the replys, what i mean is to center it in the bar from top to bottom, it is to much in the top.<br />
<br />
Hope i am allowed to add pictures.<br />
<br />
<!-- m --><a class="postlink" href="http://www.pcmanauls.com/Image1.jpg">http://www.pcmanauls.com/Image1.jpg</a><!-- m --> <br />
<br />
i want to try and move it down to the middle.<br />
<br />
Bob<!--content-->Hi again Bob.<br />
<br />
Sorry I thought you meant horizontal alignment.<br />
<br />
The vertical alignment is something to do with the way the browser is interperating table and form cells.<br />
The form cells which you are trying to centralise only fill up half the table cell for some reason (put a background colour on it to see) so it thinks it is centralised ( on the top half only)<br />
<br />
I'm not sure if this is good code but it seems to work.<br />
<br />
on line 72 ( 2 rows above <form action="search".......etc>):<br />
<br />
set the <tr> tag to <tr height="36" ><br />
<br />
Change lines 76 & 77 to read:<br />
<br />
<td valign="center"><input type="text"...... etc></td><br />
<td valign="center"><input type="submit"...... etc></td><br />
<br />
Hope this works<br />
<br />
Gord<!--content-->Thank you so much Gord worked perfectly.<br />
<br />
very happy<br />
<br />
Bob<!--content-->didn't i say that?<!--content-->Yes you did IncaWarrior i missed it :p<br />
<br />
Bob<!--content-->
 
Back
Top