Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Design > Voices That Matter

  • Print
  • + Share This
  • 💬 Discuss
This chapter is from the book

Adding Line Breaks

Just as in a word processor, you press Enter (Return) in Dreamweaver to create a new paragraph. This is fine when you want to actually create a new paragraph, but not so great when you just want to move the cursor down a line, as you might want to do when entering an address. That’s because Web browsers (and Dreamweaver) insert a blank line above and below a paragraph, so if you make each line of the address its own paragraph, it looks goofy red_circle_a.jpg.

04fig17.jpg

red_circle_a.jpg Paragraphs have whitespace before and after them, which isn’t really appropriate for things like addresses.

What you want to do is add a line break, which moves the cursor down one line without creating a new paragraph. In the code, Dreamweaver adds the HTML <br /> tag to the end of the line.

To insert a line break:

At the end of the line you want to break, press Shift-Enter (Shift-Return).

or

At the end of the line you want to break, in the Text category of the Insert panel, select Line Break from the Special Characters pop-up menu.

The text changes red_circle_b.jpg.

04fig18.jpg

red_circle_b.jpg After you replace the paragraph tags with line breaks, the address looks better.

04fig19.jpg

red_circle_c.jpg With the appropriate preference enabled, you can see the invisible line break characters.

  • + Share This
  • 🔖 Save To Your Account

Discussions

comments powered by Disqus