0

I'm attempting to mimic in HTML the following text style:

Text sample

This is a style feature of Microsoft Word, which can be set by using Tab Fills.

This is what I've accomplished so far:

So far

.legalese .paragraph:after {
  content: "------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------"; 
  width: 100%;
  height: 20px; 
  overflow: hidden; 
  display: block; 
  position: relative;
  top: -20px;
  z-index: -1;
  color: blue;
}

It's not a good solution (for what is worth, this is as far as I've come with this problem).

I've checked references such as this:

http://jsfiddle.net/FpRp2/171/ - Close, but no support for multiline text

Any ideas? Thanks!

Additional info

  • The dashed fills are not for input. For legal reasons, these type of documents must not contain any writable whitespaces (either by hand or by printing). The idea is to strikethrough it all.

1 Answers1

0

is contenteditable attribute what you are looking for ?

http://jsfiddle.net/FpRp2/172/

span {
    border-bottom: 1px dashed #333;
}

With :

<span contenteditable> &nbsp;&nbsp;&nbsp; </span>
G-Cyrillus
  • 101,410
  • 14
  • 105
  • 129