6 Replies Latest reply on Jan 6, 2009 7:05 AM by Newsgroup_User

    Multiple Paragraph Styles

    Jens Peermann Level 2
      Is it possible to have multiple paragraph styles in one document? With tags like p1, p2, p3... similar to h1, h2, h3...
        • 1. Re: Multiple Paragraph Styles
          Level 7
          Yes, but there is only the <p> tag to work with. In this case you'd need to
          use CSS to find the desired paragraph and apply the desired style to it.
          For example, you might have -

          <style type="text/css">
          .LeadPara { color:red; }
          .InteriorPara { color:blue; }
          .TailPara { color:green; }
          </style>
          </head>
          <body>
          <p class="LeadPara">blah blah</p>
          <p class="InteriorPara">blah blah</p>
          <p class="InteriorPara">blah blah</p>
          <p class="TailPara">blah blah</p>
          ...
          --
          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
          ==================


          "Jens Peermann" <webforumsuser@macromedia.com> wrote in message
          news:gjtsqo$k4p$1@forums.macromedia.com...
          > Is it possible to have multiple paragraph styles in one document? With
          > tags like p1, p2, p3... similar to h1, h2, h3...
          >

          • 2. Re: Multiple Paragraph Styles
            Jens Peermann Level 2
            Thanks, Murray.

            Unfortunately, the Styles don't override the margin and padding settings I have in the <p> tag. Probably because I have rather large settings in there and the Styles have smaller ones. It might work the way around - small setting in <p> and large ones in the Styles - but that wold require re-coding a bunch of templates, changing the workflow for a few people and re-training those people.

            I think I'll just hijack the <h5> and <h6> tags. I don't use them for anything else.
            • 3. Re: Multiple Paragraph Styles
              Level 7
              > I think I'll just hijack the <h5> and <h6> tags. I don't use them for
              > anything
              > else.

              Do that at the risk of affecting your search engine ranking. Those tags
              have semantic meaning which is considered by the SE's.

              Why do you have margin and padding in the <p> tags? Why not move it all to
              a stylesheet?

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


              "Jens Peermann" <webforumsuser@macromedia.com> wrote in message
              news:gju0hb$oub$1@forums.macromedia.com...
              > Thanks, Murray.
              >
              > Unfortunately, the Styles don't override the margin and padding settings I
              > have in the <p> tag. Probably because I have rather large settings in
              > there and
              > the Styles have smaller ones. It might work the way around - small setting
              > in
              > <p> and large ones in the Styles - but that wold require re-coding a bunch
              > of
              > templates, changing the workflow for a few people and re-training those
              > people.
              >
              > I think I'll just hijack the <h5> and <h6> tags. I don't use them for
              > anything
              > else.
              >

              • 4. Re: Multiple Paragraph Styles
                Level 7
                On Mon, 5 Jan 2009 22:10:51 +0000 (UTC), "Jens Peermann"
                <webforumsuser@macromedia.com> wrote:

                > Unfortunately, the Styles don't override the margin and padding settings I
                >have in the <p> tag.

                They should if you've done it correctly.

                Gary
                • 5. Multiple Paragraph Styles
                  Jens Peermann Level 2
                  quote:

                  Originally posted by: Newsgroup User

                  They should if you've done it correctly.

                  Gary



                  Is there more than just entering the values into the fields in the dialog box?
                  • 6. Re: Multiple Paragraph Styles
                    Level 7
                    On Tue, 6 Jan 2009 05:39:33 +0000 (UTC), "Jens Peermann"
                    <webforumsuser@macromedia.com> wrote:

                    > Is there more than just entering the values into the fields in the dialog box?

                    We'd have to see the code that it generated to tell if there is something
                    interfering with it.

                    Gary