On 6/27/12 3:20 PM, Russ Peters wrote:
Hi Folks, I'm working on designing a button style for all web forms on
our site. Our marketing dept created some buttons made from images and
they'd like the web form buttons to look similar. My quick question to
you all is it possible to make this in CSS?
The image can be found here:
http://redcanoe.dev4.l9.com/media/img/body_photo_Request_PIN_btn.jpg
How would you create that white stripe around the outside of the button
using CSS? Looks like it would be hard to use a background image due to
never knowing exactly how wide the button might be depending on what text
you had on it.
Any ideas?
The "outline-offset" property will do it. Sadly no current version of IE
supports it. Good support among other browsers, though.
<https://developer.mozilla.org/en/CSS/outline-offset>
--
Cordially,
David
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/