Call Us : 0845 519 0437

Email Us


1
Oct

Recently we took over the management of a clients website. Somehow, somewhere along the way multiple line breaks had found their way into the html on the pages.

There seemed to be an extra one after every line of code. An easy way to fix this is to hit Ctrl F in DW to bring up the “find” box.

In the top box (find) click your mouse into it anc hold down Ctrl and press “m” twice.

In the bottom box (replace) do the same but only press “m” once.

Click the “Replace All” button and bam, double linespaces are no more!

You can either select “Entire current local site” to do all pages at once or select individual files or folders.

Related posts:

  1. Make a simple diagonal page background using photoshop and css
  2. Top Photoshop keyboard shortcuts
  3. 10 top tips for Windows to Mac switchers
  4. Is the diagonal line background style old hat now?
  5. Creating depth with your image compositions in Photoshop

Category : Blog / Tutorials / Web Design

2 Responses to “Deleting extra line breaks in Dreamweaver”


Mike January 22, 2009

Thank you for this post!!!!

Made our lives so much easier.

jc October 2, 2009

What a great tip! I actually used this just to remove all line breaks. So in that case, for the Find box, I just pressed ctrl+m, and in the Replace box I didn’t do anything. Sure enough, all line breaks were replaced! This will definitely be a part of my webmaster toolbox for a long time!

Cheers!