13 Replies Latest reply on Nov 13, 2008 9:22 AM by Newsgroup_User

    How can I indent a paragraph WITHOUT creating spaces above or beneath?

      I am using Dreamweaver CS3 on a G5 Macintosh running OS 10.5.5.

      I selected a new HTML document (Dreamweaver opened it as a CSS) and pasted text from a MS Word document.

      When I "Indent" ALL of the text everything stays the same except that it is ALL indented.

      BUT when I "Indent" only one paragraph then that paragraph is not only indented BUT there ALSO appears an extra space before and an extra space after that paragraph.
      What this is doing is inserting <blockquote> before and after the paragraph.

      How can I "indent" a paragraph without any spaces appearing before or after the paragraph?

      Also can this be easily done from the Design page?
      I tried inserting a tag by pressing the "tag" button on the keyboard but that did the same thing as using the "indent" function (i.e. also inserted spaces before & after the paragraph).

      BTW: I am a novice, so please try to make it as simple as possible.
        • 1. Re: How can I indent a paragraph WITHOUT creating spaces   above   or beneath?
          Level 7
          pppp145pp wrote:
          > I am using Dreamweaver CS3 on a G5 Macintosh running OS 10.5.5.
          >
          > I selected a new HTML document (Dreamweaver opened it as a CSS) and pasted
          > text from a MS Word document.
          >
          > When I "Indent" ALL of the text everything stays the same except that it is
          > ALL indented.
          >
          > BUT when I "Indent" only one paragraph then that paragraph is not only
          > indented BUT there ALSO appears an extra space before and an extra space after
          > that paragraph.
          > What this is doing is inserting <blockquote> before and after the paragraph.
          >
          > How can I "indent" a paragraph without any spaces appearing before or after
          > the paragraph?
          >
          > Also can this be easily done from the Design page?
          > I tried inserting a tag by pressing the "tag" button on the keyboard but that
          > did the same thing as using the "indent" function (i.e. also inserted spaces
          > before & after the paragraph).
          >
          > BTW: I am a novice, so please try to make it as simple as possible.

          Learn HTML and CSS then play with Dreamweaver, that is the simplest way
          to do this.

          --
          Posting Guidelines
          http://www.adobe.com/support/forums/guidelines.html
          How To Ask Smart Questions
          http://www.catb.org/esr/faqs/smart-questions.html
          • 2. Re: How can I indent a paragraph WITHOUT creating spaces   above   or beneath?
            Level 7
            pppp145pp wrote:
            > I am using Dreamweaver CS3 on a G5 Macintosh running OS 10.5.5.
            >
            > I selected a new HTML document (Dreamweaver opened it as a CSS) and pasted
            > text from a MS Word document.
            >
            > When I "Indent" ALL of the text everything stays the same except that it is
            > ALL indented.
            >
            > BUT when I "Indent" only one paragraph then that paragraph is not only
            > indented BUT there ALSO appears an extra space before and an extra space after
            > that paragraph.
            > What this is doing is inserting <blockquote> before and after the paragraph.
            >
            > How can I "indent" a paragraph without any spaces appearing before or after
            > the paragraph?
            >
            > Also can this be easily done from the Design page?

            In Design View click on the <p> tag at the bottom of the window. Open
            the css styles panel>Window>Css Styles>Click on the little plus icon at
            the bottom of the Css Styles panel.

            From the 'Selector type' menu choose the radio button>Tag(redefines the
            look of a specific tag).

            Scroll down the list of tags in the tag box field and choose 'p'

            Click the radio button 'This document only' and press ok.

            From the 'category' menu select 'block' and in the 'text indent' field
            type 20px and press ok.

            Thats it!

            or just copy the code below and paste it in your pages code directly
            before the closing </head> tag.


            <style type="text/css">
            p {
            text-indent: 20px;
            }
            </style>






            > I tried inserting a tag by pressing the "tag" button on the keyboard but that
            > did the same thing as using the "indent" function (i.e. also inserted spaces
            > before & after the paragraph).
            >
            > BTW: I am a novice, so please try to make it as simple as possible.
            >
            • 3. How can I indent a paragraph WITHOUT creating spaces above or beneath?
              Hi Osgood,

              Thank you for the advice. That works really well. But there is one problem.

              When I use:

              <style type="text/css">
              p {
              text-indent: 20px;
              }
              </style>

              Where text is too long for one line & goes onto the next line the text wrapped onto the next line is not indented (but starts at the edge of the page).

              Anyone know to overcome the lack of indentation of text that is wrapping onto the next line?
              • 4. Re: How can I indent a paragraph WITHOUT creating spaces   above   or beneath?
                Level 7
                Are you entering the text in Code view?

                --

                Walt


                "pppp145pp" <webforumsuser@macromedia.com> wrote in message
                news:gffo97$psj$1@forums.macromedia.com...
                > Hi Osgood,
                >
                > Thank you for the advice.
                >
                > There is one problem in that where text that is too long for one line goes
                > onto the next line it is not indented (but starts at the edge of the
                > page).
                >
                > How do I overcome that?
                >


                1 person found this helpful
                • 5. Re: How can I indent a paragraph WITHOUT creating spaces   above   or beneath?
                  Yes. It was entered in Code View.
                  • 7. Re: How can I indent a paragraph WITHOUT creating spaces   above   or beneath?
                    Level 7
                    I'm wondering if what you're really wanting to do is indent the whole
                    paragraph, not the first line.

                    This is an indented first line blah blah blah blah blah blah blah blah
                    blah blah blah blah blah blah blah blah blah blah blah blah blah blah
                    blah blah blah blah blah blah blah blah blah blah blah blah blah blah
                    blah blah blah blah blah blah blah blah blah blah blah blah blah blah
                    blah blah blah blah blah blah blah .

                    This would be an indented paragraph blah blah blah blah blah blah blah
                    blah
                    blah blah blah blah blah blah blah blah blah blah blah blah blah blah
                    blah
                    blah blah blah blah blah blah blah blah blah blah blah blah blah blah
                    blah

                    If the second is what you want, use CSS per the instructions to set the LEFT
                    MARGIN (margin-left) to the amount you'd like to indent, such as 15px.

                    If that's not what you want, pretend I didn't write this.

                    Mad Dog

                    pppp145pp wrote:
                    > Hi Osgood,
                    >
                    > Thank you for the advice.
                    >
                    > There is one problem in that where text that is too long for one line
                    > goes onto the next line it is not indented (but starts at the edge of
                    > the page).
                    >
                    > How do I overcome that?


                    • 8. Re: How can I indent a paragraph WITHOUT creating spaces   above   or beneath?
                      Level 7
                      That's the problem. In Code view when you hit Enter it starts a new line of
                      code but not a new paragraph so the text you add has no tag. Enter your text
                      in Design View.

                      --

                      Walt


                      "pppp145pp" <webforumsuser@macromedia.com> wrote in message
                      news:gfg6ju$ece$1@forums.macromedia.com...
                      > Yes. It was entered in Code View.


                      1 person found this helpful
                      • 9. Re: How can I indent a paragraph WITHOUT creating spaces   above   or beneath?
                        Hi Mad Dog,

                        I am trying to indent a number of paragraphs.

                        And that's what the original code achieved.

                        However there is a problem where text is too long to fit onto one line. Where it goes onto a second line that second line is not indented (but starts at the edge of the page).

                        I have tried implementing the code that you suggest to set a left margin. But I'm still have the same problem. Obviously I'm obviously not doing it correctly.

                        Could you please be so kind to advise me what the code should be.
                        • 10. Re: How can I indent a paragraph WITHOUT creating spaces above     or beneath?
                          Level 7


                          > Could you please be so kind to advise me what the code should be.

                          >>> and pasted
                          >>> text from a MS Word document.

                          Please give a URL address to an uploaded file that you are working on.

                          It could be numerous things.

                          If you pasted Word text into a dw document, it could be thousands of
                          things.

                          Specific code- specific problem- specific fix.

                          Otherwise it's just mushy guesses.

                          --
                          Alan
                          Adobe Community Expert, dreamweaver

                          http://www.adobe.com/communities/experts/



                          1 person found this helpful
                          • 11. Re: How can I indent a paragraph WITHOUT creating spaces     above     or beneath?
                            Level 7
                            pppp145pp wrote:
                            > Hi Mad Dog,
                            >
                            > I am trying to indent a number of paragraphs.
                            >
                            > And that's what the original code achieved.
                            >
                            > However there is a problem where text is too long to fit onto one line. Where
                            > it goes onto a second line that second line is not indented (but starts at the
                            > edge of the page).
                            >
                            > I have tried implementing the code that you suggest to set a left margin. But
                            > I'm still have the same problem. Obviously I'm obviously not doing it correctly.
                            >
                            > Could you please be so kind to advise me what the code should be.
                            >
                            If you want to indent the whole paragraph whether it is one line, two
                            lines, three or four then you need to use margin-left:


                            <style type="text/css">
                            p {
                            margin-left: 20px;
                            }
                            </style>
                            • 12. Re: How can I indent a paragraph WITHOUT creating spaces above  or beneath?
                              Level 7
                              When you paste from Word, you often get line breaks instead of paragraphs.
                              I think that's the problem.

                              Instead of this -

                              <p>this is a paragraph</p>
                              <p>this is a paragraph</p>
                              <p>this is a paragraph</p>
                              <p>this is a paragraph</p>

                              you get this -

                              <p>this is a paragraph<br />
                              this is a paragraph<br />
                              this is a paragraph<br />
                              this is a paragraph</p>

                              In which case the symptoms are completely understandable.

                              --
                              Murray --- ICQ 71997575
                              Adobe Community Expert
                              (If you *MUST* email me, don't LAUGH when you do so!)
                              ==================
                              http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                              http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                              ==================


                              "Alan" <please_dont_mail_me@example.com> wrote in message
                              news:C541348F.315968%please_dont_mail_me@example.com...
                              >
                              >
                              >> Could you please be so kind to advise me what the code should be.
                              >
                              >>>> and pasted
                              >>>> text from a MS Word document.
                              >
                              > Please give a URL address to an uploaded file that you are working on.
                              >
                              > It could be numerous things.
                              >
                              > If you pasted Word text into a dw document, it could be thousands of
                              > things.
                              >
                              > Specific code- specific problem- specific fix.
                              >
                              > Otherwise it's just mushy guesses.
                              >
                              > --
                              > Alan
                              > Adobe Community Expert, dreamweaver
                              >
                              > http://www.adobe.com/communities/experts/
                              >
                              >
                              >

                              • 13. Re: How can I indent a paragraph WITHOUT creating spaces above  or beneath?
                                Level 7
                                Oooh....good thought!

                                Murray *ACE* wrote:
                                > When you paste from Word, you often get line breaks instead of
                                > paragraphs. I think that's the problem.
                                >
                                > Instead of this -
                                >
                                > <p>this is a paragraph</p>
                                > <p>this is a paragraph</p>
                                > <p>this is a paragraph</p>
                                > <p>this is a paragraph</p>
                                >
                                > you get this -
                                >
                                > <p>this is a paragraph<br />
                                > this is a paragraph<br />
                                > this is a paragraph<br />
                                > this is a paragraph</p>
                                >
                                > In which case the symptoms are completely understandable.
                                >
                                >
                                > "Alan" <please_dont_mail_me@example.com> wrote in message
                                > news:C541348F.315968%please_dont_mail_me@example.com...
                                >>
                                >>
                                >>> Could you please be so kind to advise me what the code should be.
                                >>
                                >>>>> and pasted
                                >>>>> text from a MS Word document.
                                >>
                                >> Please give a URL address to an uploaded file that you are working
                                >> on. It could be numerous things.
                                >>
                                >> If you pasted Word text into a dw document, it could be thousands of
                                >> things.
                                >>
                                >> Specific code- specific problem- specific fix.
                                >>
                                >> Otherwise it's just mushy guesses.
                                >>
                                >> --
                                >> Alan
                                >> Adobe Community Expert, dreamweaver
                                >>
                                >> http://www.adobe.com/communities/experts/