Can anyone advise on the best cross-browser/device method to style a button with curved edges that will stretch to the width of its parent element?
The button needs to use background images – I was considering the following code – The button needs to stretch to the width of th 90% outer div – btnContent div will stretch and leftCurve/rightCurve stay the same size width.
<div style="width:90%">
<div class="leftCurve"></div>
<div class="btnContent">button 1</div>
<div class="rightCurve"></div>
</div>
Try this method
Note: You have to put leftcurve, and btncenter div into rightcurve div