Jump to content

Recommended Posts

I would think you could add a css class to the input field.  Note that styling buttons might look different in different browsers.  Css might look something like this.

.button {
text-align:center;
font-size:12px;
width:90px; 
height:20px;
padding:0;
margin:0; 
background:#fff url('images/Button.gif') no-repeat;
color:#000;
}
.babybutton:hover {
text-align:center;
font-size:12px;
width:90px; 
height:20px;
padding:0;
margin:0; 
background:#fff url('images/Buttonhover.gif') no-repeat;
color:#87CEFA;
cursor: hand;
}

Link to comment
https://forums.phpfreaks.com/topic/239510-imgg-buttons/#findComment-1230360
Share on other sites

you can also just set a form input like this, when clicked by default it will submit your form

 

<input type="image" name="mybutton" src="image.jpg" width="55" height="22"> 

 

the width and height tags are set the same size as the image you want to use for the button

 

 

Link to comment
https://forums.phpfreaks.com/topic/239510-imgg-buttons/#findComment-1230372
Share on other sites

Hello,

 

dragon_sa, I already submit my form successfully. I just want to make my image to appear like clicking a button when it's clicked and not be just a static image.

 

Right now I am testing the button tag with some css styling:

<button class="bttnlike"><img src="" /></button>

//css
.bttnlike{
  background-color: transparent;
  border: none;
}

and I think is working... will see.

Link to comment
https://forums.phpfreaks.com/topic/239510-imgg-buttons/#findComment-1230421
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.