1

I need to change the length of the dash in a border bottom. I want to make the length of each dash 30px. Is there any chance to do this without using any images?

Kees Sonnema
  • 5,759
  • 6
  • 51
  • 106
Irinka
  • 9
  • 1
  • 3

1 Answers1

6

Without any images it's impossible. But it can be done without loading any images — with CSS gradients (which are basically generated images):

background: linear-gradient(to right, currentColor 0%, currentColor 50%, transparent 50%, transparent 100%) repeat-x left bottom;    
background-size: 60px 1px;
Ilya Streltsyn
  • 13,076
  • 2
  • 37
  • 57
  • that's a cool idea ... similarly, for more sophisticated patterns without loading external images you could also use data-uri backgrounds in the css. – Martin Turjak Jul 02 '13 at 09:52