Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm building a website fro a client which uses TinyMCE as the main WYSIWYG editor. Now my client asked if it is possible to write a line and make a line break and then continue without leaving a space between the text before and after the line break (e.g. just like in word).

I told him that the web uses paragraph for formatting and not line breaks. Still he'd like to use line breaks for formatting. Should I convince him not to use line breaks for formatting or should I just switch TinyMCE to line break mode (which the is not recommended in the TinyMCE documentation).

share|improve this question
up vote 0 down vote accepted

Simply use the <br /> tag wherever you want a new line...

If tinyMCE doesn't have a button for that already, I remember it was dead simple to write plugins like that with a few lines of javascript.

Same as on SE, you can use it like this:

This should work <br />with no problems.

This should work
with no problems.

share|improve this answer
What do you mean by SE? – wowpatrick Aug 6 '11 at 14:08
this site (or network of Q&A sites), SE = StackExchange – thorsten müller Aug 6 '11 at 14:10
See. Good to know. – wowpatrick Aug 6 '11 at 14:11

Why not just set the CSS for <p> tags for the areas of the site you are concerned with so that they have no margin or padding?

.mycontent p{
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.