8 Replies Latest reply on Feb 11, 2008 2:35 PM by Newsgroup_User

    new style created when changing font size

    Johnny the boy Level 1
      Whenever I highlight some text and change the font size in the property inspector, a new style gets created and the text in the code gets surrounded by <span class="style1"></span>

      I do not want this behavior. I just want the text to be surround by <font> tags. Otherwise I have to make sure this unwanted style gets put into the style sheet.

      help?
        • 1. Re: new style created when changing font size
          Level 7
          DW is quite dedicated to writing valid code. the <font> tag is no longer
          valid, it has been deprecated.

          I don't know if you can change DW's behavior in this regard but you may want
          to reconsider the wisdom in doing so.

          --

          Walt


          "Johnny the boy" <webforumsuser@macromedia.com> wrote in message
          news:foq8o0$k4r$1@forums.macromedia.com...
          > Whenever I highlight some text and change the font size in the property
          > inspector, a new style gets created and the text in the code gets
          > surrounded by
          > <span class="style1"></span>
          >
          > I do not want this behavior. I just want the text to be surround by
          > <font>
          > tags. Otherwise I have to make sure this unwanted style gets put into the
          > style sheet.
          >
          > help?
          >


          • 2. Re: new style created when changing font size
            Level 7
            If you would train yourself to stop using the Property inspector, and start
            using CSS to size your text then you would no longer have this problem.
            It's exclusively caused by changing size, or font face using the Property
            inspector.

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


            "Johnny the boy" <webforumsuser@macromedia.com> wrote in message
            news:foq8o0$k4r$1@forums.macromedia.com...
            > Whenever I highlight some text and change the font size in the property
            > inspector, a new style gets created and the text in the code gets
            > surrounded by
            > <span class="style1"></span>
            >
            > I do not want this behavior. I just want the text to be surround by
            > <font>
            > tags. Otherwise I have to make sure this unwanted style gets put into the
            > style sheet.
            >
            > help?
            >

            • 3. Re: new style created when changing font size
              Level 7
              > <span class="style1"></span>
              > I do not want this behavior

              Edit > Preferences > General

              UNcheck "Use CSS instead of HTML tags"

              But don't resort to using <font> tags via the PI. Use CSS rules instead.

              --
              Regards

              John Waller


              • 4. Re: new style created when changing font size
                Johnny the boy Level 1
                I am a confused.

                You say for me to use CSS rules instead. So if the body of my div called content is 10pt by default but I want to change one line to 14pt, i would highlight the line and then click the new css rule button and then create a class called 14pt?

                • 5. Re: new style created when changing font size
                  Level 7
                  First, pt (points) are just not appropriate for website use. They should
                  only be used for print. No, I don't know why they are included in the CSS
                  spec. I believe few professional web designers use pt. Better to use % or
                  ems instead.

                  Next, it is rarely, if ever, appropriate to change the font size for just a
                  string of text within a paragraph, h(x), li or whatever. Font size is
                  usually applied to a complete element (p, h1, h2, etc.). Why would you not
                  use a separate element for that larger font size?

                  --

                  Walt


                  "Johnny the boy" <webforumsuser@macromedia.com> wrote in message
                  news:foqbsv$nkf$1@forums.macromedia.com...
                  >I am a confused.
                  >
                  > You say for me to use CSS rules instead. So if the body of my div called
                  > content is 10pt by default but I want to change one line to 14pt, i would
                  > highlight the line and then click the new css rule button and then create
                  > a
                  > class called 14pt?
                  >
                  >
                  >


                  • 6. Re: new style created when changing font size
                    Level 7
                    > So if the body of my div called content is 10pt by default

                    One should never use points on the web. Points are intended for use on
                    printed output, not on pixel based screens.

                    > but I want to change one line to 14pt, i would
                    > highlight the line and then click the new css rule button and then create
                    > a
                    > class called 14pt?

                    It depends very much on precisely what you mean in the above. I will assume
                    that when you say 'one line' you mean 'one paragraph'. to do that, you
                    would create a rule like this -

                    #content p.special { font-size:16px; }

                    and then apply the 'special' class to the paragraph in question by selecting
                    it with the tag selector, right clicking to get the context menu, and using
                    "Set class to -> special".

                    Or, you could click in the paragraph tag in question and use the 'Style'
                    selector on the Property inspector to select "special".

                    If, instead, you meant one line within a paragraph, then you would have to
                    select that text, and surround it with a span tag (using Ctrl-t). Apply the
                    'special' class to the span tag, and adjust your rule like this -

                    #content span.special { font-size:16px; }

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


                    "Johnny the boy" <webforumsuser@macromedia.com> wrote in message
                    news:foqbsv$nkf$1@forums.macromedia.com...
                    >I am a confused.
                    >
                    > You say for me to use CSS rules instead. So if the body of my div called
                    > content is 10pt by default but I want to change one line to 14pt, i would
                    > highlight the line and then click the new css rule button and then create
                    > a
                    > class called 14pt?
                    >
                    >
                    >

                    • 7. Re: new style created when changing font size
                      Level 7
                      >They should only be used for print. No, I don't know why they are included
                      >in the CSS spec.

                      CSS can be used to generate separate stylesheets for media="print" when
                      points are appropriate.

                      http://meyerweb.com/eric/articles/webrev/200001.html

                      --
                      Regards

                      John Waller


                      • 8. Re: new style created when changing font size
                        Level 7
                        Thanks John. I remembered that when I read Murray's response. Clearly it
                        does make sense to include pts.

                        --

                        Walt


                        "John Waller" <johnw@REMOVETHISpinnacleweb.com.au> wrote in message
                        news:foqiel$13j$1@forums.macromedia.com...
                        > >They should only be used for print. No, I don't know why they are
                        > >included in the CSS spec.
                        >
                        > CSS can be used to generate separate stylesheets for media="print" when
                        > points are appropriate.
                        >
                        > http://meyerweb.com/eric/articles/webrev/200001.html
                        >
                        > --
                        > Regards
                        >
                        > John Waller
                        >