Gradient line with dashed pattern
I need to create a dashed line with a linear gradient. I managed to create a dashed line using <hr /> and the following styling: line { border: 0px; border-bottom: 2px dashed; } And I also know that to achieve a gradient I need to do: background: -webkit-gradient(linear, 0 0, 100% 0, from(white), to(black)); Based on the code in your own answer, it looks like you need a line which is a gradient in itself (from blue to green) and also have dashed pattern. This is not possible to achieve with one gradient image because spaces cannot be introduced in the middle of a gradient. However, you can