can anyone tell me how to use an image as a search button i a search form just like in places in facebook and microsoft.
image as search button
Well you could use plain html like this:
And replace "picture.gif" to the actual image filename, or there is other methods using javascript or css.
You can read this article to learn how to do it with css, although there are some issues with some browsers so I wouldn't go that way.
| Code: |
| <input type="image" src="picture.gif" name="optional"> |
And replace "picture.gif" to the actual image filename, or there is other methods using javascript or css.
You can read this article to learn how to do it with css, although there are some issues with some browsers so I wouldn't go that way.
or use background:transparent url('picture.jpg') no-repeat 0 0;
That's way too hard, the easiest way is to make a submit button with this code:
You can put everything on the button, even images like this:
| Code: |
| <button type="submit"></button> |
You can put everything on the button, even images like this:
| Code: |
| <button type="submit"><img src="" alt="" /></button> |
| Stubru Freak wrote: | ||||
That's way too hard, the easiest way is to make a submit button with this code:
You can put everything on the button, even images like this:
|
Nice!!! i never heared of it. I will definitely try this.
Before this, i always used to use the input tag
| Code: |
| <input type="submit" / > |
| imagefree wrote: | ||||||||
Nice!!! i never heared of it. I will definitely try this. Before this, i always used to use the input tag
|
Yes, input is useful for normal buttons, but it's not easy to use if you want something special.
