Skip to main content
Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.

J. A. Streich

Member since Dec 11, 2008

Recent Blog Comments By J. A. Streich

  • Ask Ben: Rendering Javascript Line Breaks

    Posted on Jul 23, 2008 at 5:04 PM

    @Peter Yes, that should work if the browser is capable of using CSS. That said, it's not the ideal solution. @no one in particular \n is a literal return, like pressing the enter key while writing code, it will render a single space in the browser. Paragraph (p) and break (br) tags are preferre... read more »