zero_one
June 4th, 2008, 05:11 PM
Hi
I'd like to give a style to buttons in HTML/CSS.
The problem is that my image which I'd like to use for a button has rounded corners and can just be stretched to fill the width of button but has to some how stretch only the middle part while leaving the rounded corners at the sides intact.
if possible I would want it to work on <input type="submit" [...]> by just adding a CSS class to it as I have all the buttons already in place and would be a real lot of work to change the syntax of all instances where buttons appear!
(I'm attaching a sample image from my application)
I've tried to look for this but didn't find anything using the <input> tag which was directly related, may be someone can help.
Thanks,
Matt
I'd like to give a style to buttons in HTML/CSS.
The problem is that my image which I'd like to use for a button has rounded corners and can just be stretched to fill the width of button but has to some how stretch only the middle part while leaving the rounded corners at the sides intact.
if possible I would want it to work on <input type="submit" [...]> by just adding a CSS class to it as I have all the buttons already in place and would be a real lot of work to change the syntax of all instances where buttons appear!
(I'm attaching a sample image from my application)
I've tried to look for this but didn't find anything using the <input> tag which was directly related, may be someone can help.
Thanks,
Matt