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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top