Hi, i have a site with a search box that appears inside a rectangle...how can i take it away? I just want the search box, with nothing around it. Ive attached a picture Thanks, fuser
Hi, thanks for the help! Heres the code <center> <table cellpadding="5" cellspacing="1" class="searchBox"> <tr> <td align="center"> <form action="index.php" method="get"> <table><tr><td> <div align="left"> <input type="text" name="query" id="query" size="40" value="<? print quote_replace($query);?>" action="include/js_suggest/suggest.php" columns="2" autocomplete="off" delay="1500"> </div> <td> <input type="submit" value="<?=$sph_messages['Search']?>"> </td></tr></table> <? if ($adv==1 || $advanced_search==1) { ?> <table width = "100%"> <tr> <td width="40%"><input type="radio" name="type" value="and" <?=$type=='and'?'checked':''?>><?=$sph_messages['andSearch']?></td> <td><input type="radio" name="type" value="or" <?=$_REQUEST['type']=='or'?'checked':''?>><?=$sph_messages['orSearch']?></td></tr> <tr> <td><input type="radio" name="type" value="phrase" <?=$_REQUEST['type']=='phrase'?'checked':''?>><?=$sph_messages['phraseSearch']?></td> <td><?=$sph_messages['show']?> <select name='results'> <option <? if ($results_per_page==10) echo "selected";?>>10</option> <option <? if ($results_per_page==20) echo "selected";?>>20</option> <option <? if ($results_per_page==50) echo "selected";?>>50</option> <option <? if ($results_per_page==100) echo "selected";?>>100</option> </select> <?=$sph_messages['resultsPerPage']?> </td> </tr> </table> <?}?> <?if ($catid<>0){?> <center><b><?=$sph_messages['Search']?></b>: <input type="radio" name="category" value="<?=$catid?>"><?=$sph_messages['Only in category']?> "<?=$tpl_['category'][0]['category']?>'" <input type="radio" name="category" value="-1" checked><?=$sph_messages['All sites']?></center> <? }?> <input type="hidden" name="search" value="1"> </form> <?if ($has_categories && $search==1 && $show_categories){?> <a href="search.php"><?=$sph_messages['Categories']?></a> <? }?> </td> </tr> </table> </center> Code (markup):
Replace: <input type="text" name="query" id="query" size="40" value="<? print quote_replace($query);?>" action="include/js_suggest/suggest.php" columns="2" autocomplete="off" delay="1500"> Code (markup): With: <input type="text" name="query" id="query" size="40" style="border: 0px;" value="<? print quote_replace($query);?>" action="include/js_suggest/suggest.php" columns="2" autocomplete="off" delay="1500"> Code (markup): -Peter
Hi, well....i would help you but the code didnt work... I replied before uploading the file. Instead of eliminating the rectangle, you eliminated the border of the search box..... How can i fix it? Thanks, fuser
Oh, I thought that's what you wanted - my mistake. Add style="border: 0px;" to the table tag, should solve the problem. Alternatively, you could add border: 0px; to the CSS file, under searchBox (assuming that you always want its border to be 0).