Reputation: 2149
I've created a simple CSS play button using borders, which you can see here, using this CSS
.btn-play {
border-left:50px solid black;
border-top:40px solid transparent;
border-bottom:40px solid transparent;
}
See also: http://jsfiddle.net/o0exn7LL/
This looks fine in Chrome and IE, but in Firefox the edges are jagged. I've seen other issues containing jagged edges in Firefox using 3d transforms, which are solved by adding a transparent outline, but that's not a solution is this case.
Does anyone know if there's a way to get these edges to be more smooth in Firefox?
Thanks!
Upvotes: 0
Views: 277
Reputation: 946
Add -moz-transform: scale(.9999);
to your .btn-play
.btn-play {
border-left:50px solid black;
border-top:40px solid transparent;
border-bottom:40px solid transparent;
-moz-transform: scale(.9999);
}
Upvotes: 2
Reputation: 7701
You can try this -moz-transform: scale(.9999);
.btn-play {
border-left:50px solid black;
border-top:40px solid transparent;
border-bottom:40px solid transparent;
-moz-transform: scale(.9999); //added this
}
Upvotes: 2
Reputation: 9739
You can use border-style: inset;
CSS
.btn-play {
border-left:50px inset black;
border-top:40px inset rgba(255, 255, 255, 0);
border-bottom:40px inset rgba(255, 255, 255, 0);
}
Upvotes: 2