Why in bottom my button is sliced? I need that it is rounded on each corner…
Now i have this:

But if i write to orange-button class css property float: left, i get result, what i need… But it is bad idea.

How to do it in normal way?
(also i use sass+haml)
.orange-button{
padding: 6px;
@include gradient-background(bottom, $or1, #fbb752);
//background: url('button-carbon-bg.png') no-repeat, -webkit-linear-gradient(bottom, $or1, #fbb752);
@include border-radius(5px, 5px, 5px, 5px);
//background: transparent url('button-carbon-bg.png') no-repeat;
border: 1px solid #d27d00;
font-family: “Myriad Pro”, Arial, Helvetica, Tahoma, sans-serif;
font-weight: bold;
font-size: 16px;
color: $or3;
text-align: center;
text-shadow: 0 1px 0 rgba(255, 255, 255, .70);
font-style: normal;
@include box-shadow(inset 0 1px 0 rgba(255,255,255,0.5));
border-bottom:2px solid #B16900;
}
.orange-button:hover{
@include gradient-background(bottom, #eba641, #fcc97d);
}
and fiddle:
http://jsfiddle.net/Zfq73/
If you don’t want to play around with the wrapper or overflows, another solution is adding
display: inline-blockto.orange-button.See updated fiddle: http://jsfiddle.net/Zfq73/2/
P.S. I always like to add separate css element display classes in my stylesheets called
.inline-blockand.block.HTML:
That way you can append
display: inline-blockordisplay: blockto individual buttons without having to make ALL your orange buttonsdisplay: inline-block.