When I hit enter, it inserts new paragraph <p> instead of a break

A

armando416

I would like it to insert a break instead of a paragraph when I hit enter.
The <p> command makes the spaces between lines too large and the page I'm
creating look oddly proportioned. Maybe I am just nit-picking here, but it
is an annoyance.
 
A

Andrew Murray

Shift-Enter for a line break (<br>)

Enter on its own will always insert a paragraph (<p>)

It is the way the program is designed.
 
M

Murray

Not only that, but it's the way HTML works. Enter creates a paragraph.

Adding a line break can be destructive if you want your text content to
reflow as the page is resized. A much better solution would be to use CSS
to redefine the margin on the <p> tags involved. Then you get your cake and
can eat it too, so to speak, since the contents will reflow properly as well
as have the correct inter-paragraph spacing.
 
Top