Border in the search box

Discussion in 'HTML & Website Design' started by fuser00, Nov 10, 2006.

  1. #1
    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
     

    Attached Files:

    fuser00, Nov 10, 2006 IP
  2. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Paste the code.
     
    T0PS3O, Nov 10, 2006 IP
  3. Monty

    Monty Peon

    Messages:
    1,363
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You should post the code, if there is something like border="1" in the html snippet set it to "0"
     
    Monty, Nov 10, 2006 IP
  4. fuser00

    fuser00 Well-Known Member

    Messages:
    1,212
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    150
    #4
    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):
     
    fuser00, Nov 10, 2006 IP
  5. dp-user-1

    dp-user-1 Well-Known Member

    Messages:
    794
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #5
    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
     
    dp-user-1, Nov 10, 2006 IP
  6. fuser00

    fuser00 Well-Known Member

    Messages:
    1,212
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    150
    #6
    Thanks for the help!

    If you need help with something let me know..

    Thanks again, fuser
     
    fuser00, Nov 10, 2006 IP
  7. dp-user-1

    dp-user-1 Well-Known Member

    Messages:
    794
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #7
    My PayPal account hasn't been tested for values over 8 digits in length - mind helping me out? :p
     
    dp-user-1, Nov 10, 2006 IP
  8. fuser00

    fuser00 Well-Known Member

    Messages:
    1,212
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    150
    #8
    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
     
    fuser00, Nov 10, 2006 IP
  9. dp-user-1

    dp-user-1 Well-Known Member

    Messages:
    794
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #9
    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).
     
    dp-user-1, Nov 10, 2006 IP