Jump to content

Trouble Coding Search Box


antandsons
 Share

Recommended Posts

Assuming that you already know or can get the necessary code for the search form, the visual effect would be done by placing the form in a <div> with the background-image you want.

 

HTML

<div id="srch">

<form> . . . </form>

</div>

 

CSS

div#srch { width: [image width]px; height [image height]px; background-image: url(image/reference/here); }

 

Is that what you mean?

Edited by btrfld
Link to comment
Share on other sites

  • 2 weeks later...
Doesn't look like you're using the stylesheet. Try adding

><link href="../style.css" rel="stylesheet" type="text/css">

in between your head tags.

 

 

Mistakenly forgot about that, but I added it in between the head tags and it still does not work. Search function is working, but no background image showing.

Link to comment
Share on other sites

This doesn't look right to me:

 

><form method="get" action="http://www.your-TCH-domain.com/search/search.pl">

<input name="Terms" id="fdse_TermsEx" type="text" style="width:98%; border:solid 0; /></td>
			<td width="61" align="right" valign="middle"><div align="right">
			  <input name="submit" value="Search" type="image" src="../../images/search_bottom.gif" />

</form>

 

Note your and

tags. Where is the rest of the table? And the closing tag is before the opening tag.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...