Multiple Classes in "class" ok?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • saz

    #16
    Re: Multiple Classes in "class&quo t; ok?

    In article <opslm4ykhqx5vg ts@zoete_b>, b_de_zoete@hotm ail.com says...[color=blue]
    > On Thu, 3 Feb 2005 15:11:44 -0600, saz <saz1958@nospam mersexcite.com> wrote:
    >[color=green]
    > > In article <opslmyffa1x5vg ts@zoete_b>, b_de_zoete@hotm ail.com says...[color=darkred]
    > >> On Thu, 3 Feb 2005 10:47:18 -0800, Will Hartung <willh@msoft.co m> wrote:
    > >>
    > >> > <p class="bold pink medium">bold pink medium sized text</p>
    > >> >
    > >>
    > >> Well, this could be okay.[/color]
    > >
    > > Again, what are you talking about? Of course it is okay, he can name it
    > > whatever he wants.[/color]
    >
    > As you so conveniently snipped away, what followed was:
    >[color=green][color=darkred]
    > >> I do not like your choice of selectors,
    > >> class names though.[/color][/color]
    >
    > And then I explained why as well:
    >[color=green][color=darkred]
    > >> Use something semantic so you remember why you put a class with
    > >> an element. And be very careful with names that are
    > >> attributes, properties, values, what ever. Confusion is close by
    > >> if you do that.[/color][/color]
    >
    > Had nothing to do with 'legal' in this context, just with what would be the
    > wiser thing to do. Try maintaining a site that uses .green and .big as classes,
    > instead of meaningful class names. Try do a complete make over of the styles
    > with classes like .pink and .medium. Good luck with it.
    >
    >[/color]
    I "convenient ly snipped away" because it was a stupid response, and did
    not address his question - is it legal? But then again, 90% of your
    responses are ill-informed, stupid or degrading - take your pick.

    And what's wrong with naming at a color? Seems VERY straight-forward to
    me.

    Comment

    • Barbara de Zoete

      #17
      Re: Multiple Classes in &quot;class&quo t; ok?

      On Thu, 3 Feb 2005 16:08:04 -0600, saz <saz1958@nospam mersexcite.com> wrote:
      [color=blue]
      > I "convenient ly snipped away" because it was a stupid response, and did
      > not address his question - is it legal?[/color]

      Well, again, this is not a help desk. Questions, topics of the questions get
      discussed. The repsons, you think stupid, was just that. Discussion.
      [color=blue]
      > But then again, 90% of your
      > responses are ill-informed, stupid or degrading - take your pick.
      >[/color]

      No, thank you. If I irritate you, just killfile me. You just did get killfiled.
      [color=blue]
      > And what's wrong with naming at a color? Seems VERY straight-forward to
      > me.[/color]

      I allready explained, twice, and, I'm not a jukebox[1].



      [1]curtecy spartanicus

      --
      ,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
      | weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
      | webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
      |zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
      `-------------------------------------------------- --<--@ ------------'

      Comment

      • Beauregard T. Shagnasty

        #18
        Re: Multiple Classes in &quot;class&quo t; ok?

        Ali Babba wrote:
        [color=blue]
        > .green, .big, .pink, .medium are not meaningful ?
        > the meaning of such classes appear pretty clear to me.[/color]

        ...until next week when you (or your client) decides s/he wants to
        change all the pink stuff to .. orange.

        So now you would have a "pink" class with an orange color code. No,
        that is not meaningful.

        Since I don't know just what the "pink" is supposed to apply to, I
        cannot speculate on what is a good word. I can state though, that for
        color classes, I use words like "colorhot" and "colorveryh ot" or
        "colorcool" and "colorverycool" . Codes associated are dark red, bright
        red, dark blue and bright blue.

        If, next week, the client wants "colorveryh ot" to be .. bright green?
        ... I change the style sheet's color code, and well, colorveryhot is
        green. But my HTML does not say "pink!" <g>
        [color=blue]
        > or should we instead use classnames like:
        > .sinterklaas, .kerst, .oud-en-nieuw ???
        > does that automatically tell what the class is about ???[/color]

        You are mixing languages, which is not helpful.

        --
        -bts
        -This space intentionally left blank.

        Comment

        • Barbara de Zoete

          #19
          Re: Multiple Classes in &quot;class&quo t; ok?

          On Thu, 03 Feb 2005 17:13:54 -0500, Beauregard T. Shagnasty
          <a.nony.mous@ex ample.invalid> wrote:
          [color=blue]
          > Ali Babba wrote:
          >[color=green]
          >> or should we instead use classnames like:
          >> .sinterklaas, .kerst, .oud-en-nieuw ???
          >> does that automatically tell what the class is about ???[/color]
          >
          > You are mixing languages, which is not helpful.
          >[/color]

          I killfiled that babba dude, so missed this one. I'll help you out. He took
          those class names from my stylesheet.
          I 'activate' them at certain holidays, such as Sinterklaas (5th december), Kerst
          (Christmas) and Oud en Nieuw (New Year). So to someone who doesn't speek Dutch
          they don't mean much, but to the Dutch, including me, the one maintaining this
          site, they are very meaningful. What happens if I 'activate' them is that a
          holiday related style (you can just see the christmas lights or fireworks, can't
          you ;-) ) gets applied to my entire site.
          Or maybe you guessed this already.


          --
          ,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
          | weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
          | webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
          |zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
          `-------------------------------------------------- --<--@ ------------'

          Comment

          • Ali Babba

            #20
            Re: Multiple Classes in &quot;class&quo t; ok?

            Beauregard T. Shagnasty wrote:
            [color=blue]
            > Ali Babba wrote:
            >[color=green]
            >> .green, .big, .pink, .medium are not meaningful ?
            >> the meaning of such classes appear pretty clear to me.[/color]
            >
            >
            > ..until next week when you (or your client) decides s/he wants to change
            > all the pink stuff to .. orange.
            >
            > So now you would have a "pink" class with an orange color code. No, that
            > is not meaningful.
            >
            > Since I don't know just what the "pink" is supposed to apply to, I
            > cannot speculate on what is a good word. I can state though, that for
            > color classes, I use words like "colorhot" and "colorveryh ot" or
            > "colorcool" and "colorverycool" . Codes associated are dark red, bright
            > red, dark blue and bright blue.
            >
            > If, next week, the client wants "colorveryh ot" to be .. bright green? ..
            > I change the style sheet's color code, and well, colorveryhot is green.
            > But my HTML does not say "pink!" <g>
            >[color=green]
            >> or should we instead use classnames like:
            >> .sinterklaas, .kerst, .oud-en-nieuw ???
            >> does that automatically tell what the class is about ???[/color]
            >
            >
            > You are mixing languages, which is not helpful.
            >[/color]

            we should not have this discussion anyway as it will not lead to
            anything. i agree with what you said.

            the classnames i irionically proposed came from a css file from mss jukebox.

            Comment

            • Ali Babba

              #21
              Re: Multiple Classes in &quot;class&quo t; ok?

              Barbara de Zoete wrote:
              [color=blue]
              > I killfiled that babba dude, ...[/color]

              heheh LOL
              i wonder how many people she has in her kill file
              must be lots of fun people, that all share a common dislike for the
              never ending flow of pain_in_the_but t_patronizing_p osts from mss jukebox.

              maybe she can do us a favor and post the list of names in her killfile
              ?! :) :)

              Comment

              • saz

                #22
                Re: Multiple Classes in &quot;class&quo t; ok?

                In article <ctu8lg$rqt$1@n ews.hispeed.ch> , AliBabba@40Band its.com
                says...[color=blue]
                > Barbara de Zoete wrote:
                >[color=green]
                > > I killfiled that babba dude, ...[/color]
                >
                > heheh LOL
                > i wonder how many people she has in her kill file
                > must be lots of fun people, that all share a common dislike for the
                > never ending flow of pain_in_the_but t_patronizing_p osts from mss jukebox.
                >
                > maybe she can do us a favor and post the list of names in her killfile
                > ?! :) :)
                >[/color]
                I have yet to see her contribute anything useful to this group. She
                amuses me - I think it's because she's nowhere near as smart as she
                thinks she is.

                And her website - it hurts my eyes! This is one designer that should
                *not* be giving advice to anyone.

                Comment

                • Beauregard T. Shagnasty

                  #23
                  Re: Multiple Classes in &quot;class&quo t; ok?

                  Barbara de Zoete wrote:
                  [color=blue]
                  > I killfiled that babba dude, so missed this one. I'll help you out.
                  > He took those class names from my stylesheet. I 'activate' them
                  > at certain holidays, such as Sinterklaas (5th december), Kerst
                  > (Christmas) and Oud en Nieuw (New Year).[/color]

                  That makes sense. 5th December can only ever be .. 5th December. The
                  styles associated with it may change, though.

                  5th December may be [example] blue and white this year, and red and
                  green next year. However, the class code for 5th December is still
                  meaningful. Unlike "pink".
                  [color=blue]
                  > So to someone who doesn't speek Dutch they don't mean much, but to
                  > the Dutch, including me, the one maintaining this site, they are
                  > very meaningful. What happens if I 'activate' them is that a
                  > holiday related style (you can just see the christmas lights or
                  > fireworks, can't you ;-) ) gets applied to my entire site. Or
                  > maybe you guessed this already.[/color]

                  Yes, I guessed that. <g>

                  (I think I will rename my menu class to ... "mystery". Or, "pinkmyster y".)

                  --
                  -bts
                  -This space intentionally left blank.

                  Comment

                  • Richard

                    #24
                    Re: Multiple Classes in &quot;class&quo t; ok?

                    On Thu, 03 Feb 2005 20:15:05 +0100 Barbara de Zoete wrote:
                    [color=blue]
                    > On Thu, 3 Feb 2005 10:47:18 -0800, Will Hartung <willh@msoft.co m>
                    > wrote:[/color]
                    [color=blue][color=green]
                    >> Can someone clarify that multiple classes in the "class" attribute are
                    >> ok
                    >> and "legal" and not some fluke?[/color][/color]

                    [color=blue]
                    > They are 'legal', yes, as gets explained in this group about fifty
                    > times a year[/color]
                    ::-(
                    [color=blue][color=green]
                    >> So, I can do:[/color][/color]
                    [color=blue][color=green]
                    >> .pink {color: pink}
                    >> .bold {font-weight: bold}
                    >> .medium {font-size: 12pt}[/color][/color]

                    [color=blue]
                    > No, you can't. Again, as gets explained in this group about fifty times
                    > a year,
                    > using pt as unit for font-size is a bad idea. Google for the reason.[/color]

                    Bullshit.
                    As "point" is the natural terminology of defining font size, why would it
                    not be "legal"?
                    I've used it and it validates.
                    I just worked on the example and it works just fine.

                    Using pixel instead of point, a translation must take place.
                    So why translate?


                    Comment

                    • Richard

                      #25
                      Re: Multiple Classes in &quot;class&quo t; ok?

                      On Thu, 3 Feb 2005 21:32:58 +0100 Lauri Raittila wrote:
                      [color=blue]
                      > in comp.infosystem s.www.authoring.stylesheets, Mark Carroll wrote:[color=green]
                      >> In article <36f9tnF51t2ihU 1@individual.ne t>,
                      >> Will Hartung <willh@msoft.co m> wrote:[color=darkred]
                      >> >Can someone clarify that multiple classes in the "class" attribute[/color]
                      >> are ok[color=darkred]
                      >> >and "legal" and not some fluke?
                      >> >
                      >> >So, I can do:
                      >> >
                      >> >.pink {color: pink}
                      >> >.bold {font-weight: bold}
                      >> >.medium {font-size: 12pt}
                      >> >
                      >> ><p class="bold pink medium">bold pink medium sized text</p>[/color]
                      >> (snip)[/color][/color]
                      [color=blue][color=green]
                      >> Yes, that's fine - certainly it's in the CSS2.1 specification.
                      >> Browser support may be another matter: ISTR there's at least one
                      >> common browser that has problems with it, but I forget which.[/color][/color]
                      [color=blue]
                      > Not with that syntax, I believe, but things like .pink.bold {
                      > color:yellow;fo nt-weigh:normal;} don't work as well.[/color]

                      because the syntax is wrong.
                      it should be .pink, .bold {....}


                      Comment

                      • Christoph Paeper

                        #26
                        Re: Multiple Classes in &quot;class&quo t; ok?

                        *Richard* <Anonymous@127. 001>:[color=blue]
                        >
                        > As "point" is the natural terminology of defining font size,[/color]

                        Strange view. "1pt" is just an alias of 1/72 'in'; "1in" is just an alias
                        of "25.4mm". There's no "natural terminology of defining font size" in
                        there. Font size is best set in an angular unit, taking the distance
                        text--eye into account---in theory, CSS pixels are such a unit.
                        [color=blue]
                        > I've used it and it validates.[/color]

                        That doesn't mean it's advisable. It's been discussed here and elsewhere
                        ad nauseam, please read up yourself and learn. 'em' and '%' are the only
                        advisable CSS units for 'font-size'; keywords may be a possibility, too.
                        [color=blue]
                        > I just worked on the example and it works just fine.[/color]

                        Try different browsers, operating systems, screens and (correct) screen
                        settings.
                        [color=blue]
                        > Using pixel instead of point,[/color]

                        You shouldn't use 'px' for 'font-size' either.
                        [color=blue]
                        > a translation must take place.[/color]

                        Huh? Current browsers map CSS pixels 1:1 onto screen pixels.

                        --
                        "Real stupidity beats artificial intelligence every time."
                        Terry Pratchett

                        Comment

                        • Christoph Paeper

                          #27
                          Re: Multiple Classes in &quot;class&quo t; ok?

                          *Richard* <Anonymous@127. 001>:[color=blue]
                          > On Thu, 3 Feb 2005 21:32:58 +0100 Lauri Raittila wrote:
                          >[color=green]
                          >> things like .pink.bold {color:yellow;f ont-weigh:normal;}
                          >> don't work as well.[/color]
                          >
                          > because the syntax is wrong.
                          > it should be .pink, .bold {....}[/color]

                          That's a different thing, obviously. Both are syntactically and
                          grammatically valid.
                          ".pink.bold " matches any element instance with a 'class' attribute that
                          includes "pink" _and_ "bold", whereas ".pink, .bold" matches any element
                          instance with a 'class' attribute that includes "pink" _or_ "bold" (or
                          both). The class names in both selectors are commutative.

                          Now you can do a little exercise at home by finding out what ".pink
                          ..bold", ".pink>.bol d" and ".pink+.bol d" mean and whether they are
                          commutative, too. Get a bonus point for ".pink~.bol d"! Finally point out
                          the selector that has a lower specifity than the other five.

                          Next time we learn to write a selector that matches any element instance
                          with a 'class' attribute set to "pink", but doesn't match one with "pink
                          bold". And many more!

                          --
                          "You're basically killing each other to see
                          who's got the better imaginary friend."
                          Rich Jeni on war vs. religion

                          Comment

                          • Beauregard T. Shagnasty

                            #28
                            Re: Multiple Classes in &quot;class&quo t; ok?

                            Richard wrote:
                            [color=blue]
                            > On Thu, 03 Feb 2005 20:15:05 +0100 Barbara de Zoete wrote:[color=green]
                            >> No, you can't. Again, as gets explained in this group about fifty
                            >> times a year, using pt as unit for font-size is a bad idea.
                            >> Google for the reason.[/color]
                            >
                            > Bullshit. As "point" is the natural terminology of defining font
                            > size, why would it not be "legal"?[/color]

                            Wake up your brain. She said it is a Bad Idea. She did not say is was
                            not Legal. Yes, it is a Bad Idea.

                            Point is a natural terminology for print media.
                            [color=blue]
                            > I've used it and it validates. I just worked on the example and it
                            > works just fine.[/color]

                            Set all your fonts to pt, then open the page in IE and try to resize
                            them. It frigging doesn't work. Bad Idea.
                            [color=blue]
                            > Using pixel instead of point, a translation must take place. So why
                            > translate?[/color]

                            Huh?

                            --
                            -bts
                            -This space intentionally left blank.

                            Comment

                            • Stanimir Stamenkov

                              #29
                              Re: Multiple Classes in &quot;class&quo t; ok?

                              /saz/ about Barbara de Zoete:
                              [color=blue]
                              > And her website - it hurts my eyes! This is one designer that should
                              > *not* be giving advice to anyone.[/color]

                              You're hilarious. Just switch the style off while viewing her site.

                              --
                              Stanimir

                              Comment

                              • Del Ferguson

                                #30
                                Re: Multiple Classes in &quot;class&quo t; ok?


                                "Stanimir Stamenkov" <s7an10@netscap e.net> wrote in message
                                news:36hqffF51k 5s6U1@individua l.net...[color=blue]
                                > /saz/ about Barbara de Zoete:
                                >[color=green]
                                >> And her website - it hurts my eyes! This is one designer that should
                                >> *not* be giving advice to anyone.[/color]
                                >
                                > You're hilarious. Just switch the style off while viewing her site.
                                >
                                > --
                                > Stanimir[/color]

                                Stanimir,

                                How do you turn off style, easily, in IE6? Just curious.

                                Del Ferguson



                                Comment

                                Working...