0

Why does hitting the enter key in Visual Editor add <p> instead of <br>?

What I want sometimes is a new line that starts immediately after the previous line. Unfortunately, the visual editor automatically wraps my new line in a <p> tag when all I really want is a <br> tag so that there is no space between the two lines.

How can I solve this without specifically changing my code in the HTML tab?

1 Answer 1

2

Hit Shift + Enter and you''ll get <br>

4
  • I'm not really sure why you think that would work. I gave it a shot and all it did was put extra space after each paragraph. This is not what I want. What I want is to have no space after a line break.
    – jkupczak
    Commented Oct 9, 2011 at 21:57
  • I get it. Edited the answer.
    – Alexey
    Commented Oct 9, 2011 at 22:36
  • Haha, there it is. Well, almost. CTRL + Enter didn't work for me. I gave Shift + Enter a try and that did the trick!
    – jkupczak
    Commented Oct 9, 2011 at 23:00
  • of course Shift + Enter. It was my mistake, need some sleep :)
    – Alexey
    Commented Oct 9, 2011 at 23:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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