Forum Moderators: open
<td class="search-align">
<form method="get" action="http://www.example.com/search/search.pl" style="margin: 0;">
<input name="Terms" size="20" value=" search this site" class="search">
****
</td>
<td class="search-align">
****
<input name="src" type="submit" value="Go" class="search">
</form>
</td>
I need to validate this without removing this part:
****
</td>
<td class="search-align">
****
Is there a way? This thing is driving me crazy! Many thanks!
[edited by: malasorte at 10:21 pm (utc) on Oct. 3, 2006]
-b
This code is for a simple search box, composed of the box in which you type the text and the "search button". I have the search box in one table and the button in another table, looks great. But it doesen't validate...
Valid HTML 4.01 Strict:
<form method="get" action="http://www.example.com/search/search.pl" style="margin: 0;">
<table><tr><td class="search-align">
<input name="Terms" size="20" value=" search this site" class="search">
</td><td class="search-align">
<input name="src" type="submit" value="Go" class="search">
</td><td>
<!-- I need to validate this without removing this part: -->
</td><td class="search-align">
<!-- Something else here? -->
</td></tr></table>
</form>
If that doesn't sort it then "it's something else" in the code, so we'll need to see more...
Could it be that style="margin: 0;" has no unit
Specifying 0 (zero) without any units is, I think, the recommended way and is perfectly valid. (but that is the CSS anyway, not the HTML)