I'm trying to make a diagonal line with the following code:
<div class="diagonal_line"></div>
.diagonal_line {
border-bottom: 50px solid #212121;
border-left: 8px solid rgba(255, 255, 255, 0);
display: inline-block;
}
But the line gets jagged. Is it possible to have a smoother diagonal line with only css?
Demo: http://jsfiddle.net/f8cpX/
UPDATE:
- It appears jagged on FF (22.0) and Safari (5.1.9), but not on Chrome (28.0).
- I'm looking for diagonal shape (see the demo), not only the line.