Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 25th, 2012  |  syntax: None  |  size: 0.38 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Highlight wrapped lines with CSS
  2. <code>
  3. <div class="line">Too much code at one line. Learn to write shorter lines!</div>
  4. <div class="line">Lonely line.</div>
  5. ...
  6. </code>
  7.        
  8. code {display: block; width: 150px;} /* <-- Not interesting, just for testing*/
  9. code .line            {  color: red;  /* Visual indication */ }
  10. code .line:first-line {  color: #000; /* Default color   */ }