Skip navigation
Currently Being Moderated

How do I fix a Dreamweaver CS6 double-spacing issue?

May 19, 2012 8:29 PM

Tags: #error #adobe #mac #html #dreamweaver #code #html5 #cs6 #dw

I've recently encountered a strange issue; while I don't put double-spaces in the HTML or CSS of an HTML5 document, be they <br> or <p>, all browsers I use parse as if I had set formatting to double space, à la word processor. This happens every time I close, then open a <div>, and every time I change headings (<h1>, <h2>, etc). Stranger still, I'm working on multiple projects, and this is the first and only time this has happened; and it only happens in one of my projects.

 
Replies
  • Currently Being Moderated
    May 20, 2012 2:27 PM   in reply to DWguy

    Are you saying the line-space is doubled?  Or do you mean double spaces display between words?

     

    Please post a link to a page that does this.  I might easier to nail down if we could see it.

     

     

     

     

    Nancy O.

    Alt-Web Design & Publishing

    Web | Graphics | Print | Media  Specialists 

    http://alt-web.com/

     
    |
    Mark as:
  • Currently Being Moderated
    May 20, 2012 3:39 PM   in reply to DWguy

    Well, I'm seeing a bunch of break tags in your source code:

     

    <p>Coffee is the fuel of the web design world. From late night, last-minute projects, to technologically incompetent clients, coffee helps web designers somehow get through the days.<br>

                    Unfortunately, coffee has gotten very expensive, and stingy clients are on the rise. Worse still, clients seem to know less and less about computers, and are more and more insistent on the fact that the entire web design process should be directed entirely by them. Then, when the end product looks terrible, who sould be to blame but you, the humble designer? They end up not using your project, and using that as an excuse to not pay you.<br>

                    In these times of hardship, it's important to know which brands and kinds of coffee offer the most caffeine for your hard-earned buck. That's what this site is all about. <br>

              Well, coffee and web design tips.</p>

     

    If you can't see them in Dreamweaver Code View, copy & paste all your code into a plain text editor like NotePad or NoteTab or NotePad++ to facillitate seeing them and stripping them out.

     

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    May 20, 2012 3:48 PM   in reply to DWguy

    I think what you're seeing are the normal default browser margins on header tags (<h1>, <h2>, <h3> etc).

     

    You can emulate the word processing layout that you're obviously aiming for by zero-ing out those margins in the stylesheet by adding

     

    h1, h2, h3 {

         margin: 0;

    }

     

    You can also add

     

    p {

         margin:0;

    }

     

    but that will zero all margins on all paragraph tags everywhere. Check the results and see if it's what you want to achieve.

     
    |
    Mark as:
  • Currently Being Moderated
    May 20, 2012 3:53 PM   in reply to DWguy

    OK.  Let me put it this way.  You or someone else working on the site pasted some spurious code (probably from MS Office) into this project.  The result is junk code that DW can't see. 

     

    Paste entire page code into your plain text editor to clean it up.  When you're done, paste the sanitized code back into DW. 

    Problem solved.

     

    In the future, don't paste code from MS Office (or any other app) into your web pages.  

    Use Paste Special > Text only.

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    May 20, 2012 3:58 PM   in reply to DWguy

    DWguy wrote:

     

    A good tip, but unfortunately, no effect.

    Works here when you include every possible header tag.

     

    h1, h2, h3, h4, h5, h6, p {

         margin: 0;

    }

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points