Jakob said:
Of cource I can show you the source code...
This is the part of the HTML-file in question:
<tr>
<td>
<table width="100%" class="searchtable">
<tr>
<td valign="middle">
<form name="formSearch" id="formSearch"
method="post" action="">
<input name="textfield" type="text" size="10"
maxlength="50" /> <input name="Submit"
type="submit" class="searchbutton"
value="Ok" />
</form>
</td>
</tr>
</table>
</td>
</tr>
And this is the "searchtable" part of the stylesheet:
.searchtable {
text-align: center;
vertical-align: middle;
}
I have tried with other things than this, but nothing
works. The form keeps aligning to the top.
No it doesn't.
Give the table.searchtable a height and you'll see it almost
vertically center.
Then add this line:
..searchtable form{margin-bottom:0;}
and it's exactly centered.
BTW, I copied your code into an html file that I had waiting
for tests like this, added the <table> and </table> tags
around the <tr></tr>, started up my local version of Apache,
renamed the file so I can use the original again for other
purposes, and then added a *{border:1px solid red} to the
styles, to see what was happening.
I wonder, is this what people in Usenet have to do to be able
to help you, or should /you/ make a sample and upload it to a
server so others can observe and help?