Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Layout for Searchbox + Advanced search
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Trial_and_Error
Starting Member

36 Posts

Posted - March 09 2009 :  19:53:42  Show Profile  Reply with Quote
Hello,

I'm customizing the standard searchbox in shoppage_trailer.htm.

I have put the standard "form3" into a table like below, but there is too much space between the advanced search link and the border of the table. I have the impression that there is somewhere a hard return in the layout of "form3".

Can somebody tell me where I could find the layout for form3?

Thanks for any help

The table for form3:

<table width="100%" border="0" cellpadding="0" cellspacing="0" id="zoek">
<tr>
<td >
<form method="POST" action="shopsearch.asp?search=Yes" id="form3" name="form3" >
<input class="zoekveld" type="text" name="keyword" size="20" value="<%=getlang("langsearchboxdefault")%>" onClick="clearfield()">
<input name="b1" type="image" src="images/header/go.gif" align="center" border="0">
<a href="shopsearch.asp"><%=getlang("langadvancedsearch")%></a>
</form>
</td>
</tr>

</table>

devshb
Senior Member

United Kingdom
1904 Posts

Posted - March 09 2009 :  20:50:41  Show Profile  Visit devshb's Homepage  Reply with Quote
in some browsers (internet explorer is one I think), form tags create spurious whitespace; move the form tags to be outside the <td> and/or <tr> tags and you'll probably see it suddenly shrink back to what you'd expected, eg:


<table width="100%" border="0" cellpadding="0" cellspacing="0" id="zoek">
<form method="POST" action="shopsearch.asp?search=Yes" id="form3" name="form3" >
<tr>
<td>
<input class="zoekveld" type="text" name="keyword" size="20" value="<%=getlang("langsearchboxdefault")%>" onClick="clearfield()">
<input name="b1" type="image" src="images/header/go.gif" align="center" border="0">
<a href="shopsearch.asp"><%=getlang("langadvancedsearch")%></a>
</td>
</tr>
</form>
</table>

Simon Barnaby
Developer
[email protected]
www.BigYellowZone.com
Web Design, Online Marketing and VPASP addons
Go to Top of Page

Trial_and_Error
Starting Member

36 Posts

Posted - March 10 2009 :  15:41:53  Show Profile  Reply with Quote
Hi Simon,

Amazing how browsers interpret things differently. Anyway, your suggestion did the trick!

Thanks,

Trial and Error
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00