I'm currently working on building a unique chevron-style banner using CSS3, but I've run into some aliasing problems specifically in Chrome. Despite trying to utilize the
-webkit-backface-visibility: hidden
attribute, I still can't seem to resolve the issue.
Let's take a look at the CSS code:
.banner {
height: 0px;
width: 280px;
border-left: 20px solid rgba(0, 0, 0, 0);
border-right: 20px solid rgba(0, 0, 0, 0);
border-bottom: 40px solid black;
border-top: 40px solid black;
-webkit-backface-visibility: hidden;
text-align: center;
line-height: 0;
color: white;
}
Here is a snippet of the HTML used:
<div class="banner">
Hello World
</div>
If you'd like to see the issue firsthand, check out this fiddle link: http://jsfiddle.net/4PWP5/2/
Any suggestions or assistance in resolving this problem would be greatly appreciated.