View Full Version : images in buttons
Hello, I was wondering how you make image buttons like on this website?
Where it says "Signup" or "Login" "Search"
Please and thank you!
BLiZZaRD
12-22-2007, 07:16 PM
All you do is make an image. Then link it to an action or an URL.
Please note that these types of questions are NOT php based, and need to be posted in the Graphics thread of the forum, to help continuity and ease of use of the forum for future visitors.
djr33
12-22-2007, 07:59 PM
Actually, this is a CSS question.
It is in fact an html button, and it is using an image with CSS:
background-image:url(image.gif);
Note that you can also just use an image element in a form:
<input type="image" src="...">
That will automatically act like a submit button.
BLiZZaRD
12-22-2007, 07:59 PM
Welcome.
The most common is to load the image and link it to an url, which looks like:
<a href="http://yoursite.com/page.html><img src = "/path/to/image.jpg" alt=""></a>
There are many other things you can do inside the image tag, but that is basic, and fits most needs.
Sorry Daniel, didn't see your post. I don't think the OP was asking how to make it submit, just how to make an image clickable.
I could be wrong though.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.