Complicated Question?

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

    Complicated Question?

    Oddly enough, in searching Google for web and ngs, I could find only a
    handful of articles on this problem. I wonder if it's one not
    typically encountered?

    I wanted to have three divs that could float, if need be. They are
    inside another div. I put a background color on it. I float all three
    inside it to the left.

    IE works fine, just as you'd expect. But Firefox, while it renders
    everything else the same, widens out the containing box and forces a
    horizontal scrollbar.

    I can't imagine why. If I remove the float, the scrollbar goes away.
  • Mark Johnson

    #2
    Re: Complicated Question?

    Mark Johnson <102334.12@comp userve.com> wrote:
    [color=blue]
    >Oddly enough, in searching Google for web and ngs, I could find only a
    >handful of articles on this problem. I wonder if it's one not
    >typically encountered?
    >
    >I wanted to have three divs that could float, if need be. They are
    >inside another div. I put a background color on it. I float all three
    >inside it to the left.
    >
    >IE works fine, just as you'd expect. But Firefox, while it renders
    >everything else the same, widens out the containing box and forces a
    >horizontal scrollbar.
    >
    >I can't imagine why. If I remove the float, the scrollbar goes away.[/color]

    If I might answer my own question, it probably is due simply to the
    difference between 'quirks' and 'strict' mode in Firefox .8 or .9.

    I prefer quirks, but would probably be able to render in Firefox using
    strict. As it is Firefox kicks out extra-wide divs, spans, what have
    you. IE isn't as bad. But switching to strict causes problems in IE,
    as well.

    Quirks mode is typically had by not including a URL in the DOCTYPE. If
    using XSLT, that means including no "doctype-system" parameter. If you
    do include the URL/URI then typically browsers kick into a strict
    mode, which can completely change the rendering of your style sheets.

    One day, I may decide to go transitional 4.01 strict, instead of
    quirks as of now. But it's a lot of work to rework all those style
    sheets just so I won't get a horizontal scroll bar in Firefox - which
    browser hardly anyone uses. It'll take time. It might be worth it.

    Comment

    • Lauri Raittila

      #3
      Re: Complicated Question?

      In article <clbfm0dnmclpuv s8ee1aesfp6jtcn 80ubo@fe02.buzz ardnews.com>,
      102334.12@compu serve.com says...[color=blue]
      > Oddly enough, in searching Google for web and ngs, I could find only a
      > handful of articles on this problem. I wonder if it's one not
      > typically encountered?
      >
      > I wanted to have three divs that could float, if need be. They are
      > inside another div. I put a background color on it. I float all three
      > inside it to the left.
      >
      > IE works fine, just as you'd expect. But Firefox, while it renders
      > everything else the same, widens out the containing box and forces a
      > horizontal scrollbar.
      >
      > I can't imagine why. If I remove the float, the scrollbar goes away.[/color]

      URL?

      --
      Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>

      Comment

      • Mark Johnson

        #4
        Re: Complicated Question?

        Lauri Raittila <lauri@raittila .cjb.net> wrote:
        [color=blue]
        >In article <clbfm0dnmclpuv s8ee1aesfp6jtcn 80ubo@fe02.buzz ardnews.com>,
        >102334.12@comp userve.com says...[color=green]
        >> Oddly enough, in searching Google for web and ngs, I could find only a
        >> handful of articles on this problem. I wonder if it's one not
        >> typically encountered?
        >>
        >> I wanted to have three divs that could float, if need be. They are
        >> inside another div. I put a background color on it. I float all three
        >> inside it to the left.
        >>
        >> IE works fine, just as you'd expect. But Firefox, while it renders
        >> everything else the same, widens out the containing box and forces a
        >> horizontal scrollbar.
        >>
        >> I can't imagine why. If I remove the float, the scrollbar goes away.[/color]
        >
        >URL?[/color]

        Box model differences between strict and quirks mode.

        Frankly, I didn't realize that strict mode will NOT allow custom
        attributes. I require attributes of my own choosing for certain
        functionality. I literally can't use strict mode. And it seems to be
        more trouble than it's worth. The only advantage would be that IE and
        Firefox, and NN if they're still keeping that going, and various
        versions more importantly (MAC anyone?) would all display the page the
        same way, and have available the same DOM for javascript. But I'm told
        it doesn't even always work that way.

        That being said, I find in Firefox, for example, no real difference in
        switching from strict to quirks except that one MUST use the 'px'
        suffix for setting pixel values. IE isn't so well behaved.

        The way you switch, at least in IE 6, is simply to use a doctype with
        something for the type and something for the url. Could just be a
        letter "x" in both cases. But using the second value kicks you into
        strict mode, and all the problems that still presents in 2004. And
        leaving off the second DOCTYPE argument keeps you in default quirks
        mode, which you get without any DOCTYPE line at all.

        Comment

        • Lauri Raittila

          #5
          Re: Complicated Question?

          In article <alttm090tp06pi a48o7aj0appacmt sbfvb@fe02.buzz ardnews.com>,
          102334.12@compu serve.com says...[color=blue]
          > Lauri Raittila <lauri@raittila .cjb.net> wrote:
          >[color=green]
          > >In article 102334.12@compu serve.com says...[color=darkred]
          > >> I can't imagine why. If I remove the float, the scrollbar goes away.[/color]
          > >
          > >URL?[/color]
          >
          > Box model differences between strict and quirks mode.
          >
          > Frankly, I didn't realize that strict mode will NOT allow custom
          > attributes.[/color]

          Can't think what box modell has to do with custom attributes. Solve
          problem by getting rid of custom attributes.

          Aalto University, Finland is a new multidisciplinary science and art community in the fields of science, business, and art and design.


          --
          Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>

          Comment

          • Mark Johnson

            #6
            Re: Complicated Question?

            Lauri Raittila <lauri@raittila .cjb.net> wrote:
            [color=blue]
            >In article <alttm090tp06pi a48o7aj0appacmt sbfvb@fe02.buzz ardnews.com>,
            >102334.12@comp userve.com says...[color=green]
            >> Lauri Raittila <lauri@raittila .cjb.net> wrote:[color=darkred]
            >> >In article 102334.12@compu serve.com says...
            >> >> I can't imagine why. If I remove the float, the scrollbar goes away.
            >> >
            >> >URL?[/color]
            >>
            >> Box model differences between strict and quirks mode.
            >>
            >> Frankly, I didn't realize that strict mode will NOT allow custom
            >> attributes.[/color]
            >
            >Can't think what box modell has to do with custom attributes. Solve
            >problem by getting rid of custom attributes.[/color]

            Nobody said it had anything to do with it. I said the difference in
            display was due to different models. But part of the strict mode, as I
            understand it, is that custom attributes are not allowed. That's
            unacceptable, and apparently is seen as such by many on the web - from
            what I've read. One may well require attributes for functionality,
            which is more efficient than using nested elements, as well.

            Many may not approve of javascript, itself, of vbscript or java or
            whatever else as anything but rude hacks. But short of compiling
            plug-ins for everything, which you have to get people to download,
            client side solutions are often very elegant.

            Strict mode, in my opinion, doesn't seem 'ready for primetime'.

            Comment

            • Lauri Raittila

              #7
              Re: Complicated Question?

              Mark Johnson wrote;[color=blue]
              > Lauri Raittila <lauri@raittila .cjb.net> wrote:
              >[color=green]
              > >In article <alttm090tp06pi a48o7aj0appacmt sbfvb@fe02.buzz ardnews.com>,
              > >102334.12@comp userve.com says...[color=darkred]
              > >> Lauri Raittila <lauri@raittila .cjb.net> wrote:
              > >> >In article 102334.12@compu serve.com says...
              > >> >> I can't imagine why. If I remove the float, the scrollbar goes away.
              > >> >
              > >> >URL?
              > >>
              > >> Box model differences between strict and quirks mode.
              > >>
              > >> Frankly, I didn't realize that strict mode will NOT allow custom
              > >> attributes.[/color]
              > >
              > >Can't think what box modell has to do with custom attributes. Solve
              > >problem by getting rid of custom attributes.[/color]
              >
              > Nobody said it had anything to do with it. I said the difference in
              > display was due to different models. But part of the strict mode, as I
              > understand it, is that custom attributes are not allowed.[/color]

              Well, they aren't allowed in any mode. I think you have confused few
              things. For example, what you mean by custom attributes?
              [color=blue]
              > That's
              > unacceptable, and apparently is seen as such by many on the web - from
              > what I've read. One may well require attributes for functionality,
              > which is more efficient than using nested elements, as well.[/color]
              [color=blue]
              > Many may not approve of javascript, itself, of vbscript or java or
              > whatever else as anything but rude hacks. But short of compiling
              > plug-ins for everything, which you have to get people to download,
              > client side solutions are often very elegant.[/color]

              URL? Browsers conserned.
              [color=blue]
              > Strict mode, in my opinion, doesn't seem 'ready for primetime'.[/color]

              What you mean by strict mode?

              It doesn't help anybody that you answer yourself on questions that are
              uncomprehansibl e for anyone else. I have no idea what you are doing, or
              why the hell you need custom attributes. Of why you can't tricker right
              mode.

              --
              Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>

              Comment

              • Brian

                #8
                Re: Complicated Question?

                Mark Johnson wrote:
                [color=blue]
                > I said the difference in display was due to different models.[/color]

                Maybe. But since you still haven't provided a url, we can't be sure.
                [color=blue]
                > But part of the strict mode, as I understand it, is that custom
                > attributes are not allowed.[/color]

                Custom attributes -- by that I assume you mean ones that you've made up
                for your own use -- are by definition not allowed in any version of
                HTML. But what has this to do with strict or quirks rendering mode? You
                seem to be conflating HTML document type definitions with browser
                rendering modes. You may want to read how browsers switch between modes.

                Aalto University, Finland is a new multidisciplinary science and art community in the fields of science, business, and art and design.

                The MDN Web Docs site provides information about Open Web technologies including HTML, CSS, and APIs for both Web sites and progressive web apps.

                [color=blue]
                > Strict mode, in my opinion, doesn't seem 'ready for primetime'.[/color]

                Until you have a clear idea of the issues involved, your opinion is not
                likely to hold much sway around here.

                --
                Brian (remove "invalid" to email me)

                Comment

                • Mark Johnson

                  #9
                  Re: Complicated Question?

                  Lauri Raittila <lauri@raittila .cjb.net> wrote:
                  [color=blue]
                  >Mark Johnson wrote;[color=green]
                  >> Lauri Raittila <lauri@raittila .cjb.net> wrote:[color=darkred]
                  >> >In article <alttm090tp06pi a48o7aj0appacmt sbfvb@fe02.buzz ardnews.com>,
                  >> >102334.12@comp userve.com says...
                  >> >> Lauri Raittila <lauri@raittila .cjb.net> wrote:
                  >> >> >In article 102334.12@compu serve.com says...
                  >> >> >> I can't imagine why. If I remove the float, the scrollbar goes away.[/color][/color][/color]
                  [color=blue][color=green]
                  >> Nobody said it had anything to do with it. I said the difference in
                  >> display was due to different models. But part of the strict mode, as I
                  >> understand it, is that custom attributes are not allowed.[/color][/color]
                  [color=blue]
                  >Well, they aren't allowed in any mode. I think you have confused few
                  >things. For example, what you mean by custom attributes?[/color]

                  Define terms, you mean? That should come first.

                  Custom attributes. Meta-attributes. Attributes you've never seen. Etc.

                  [color=blue][color=green]
                  >> unacceptable, and apparently is seen as such by many on the web - from
                  >> what I've read. One may well require attributes for functionality,
                  >> which is more efficient than using nested elements, as well.[/color][/color]
                  [color=blue][color=green]
                  >> Many may not approve of javascript, itself, of vbscript or java or
                  >> whatever else as anything but rude hacks. But short of compiling
                  >> plug-ins for everything, which you have to get people to download,
                  >> client side solutions are often very elegant.[/color][/color]
                  [color=blue]
                  >URL? Browsers conserned.[/color]

                  You lost me. Maybe you could elaborate beyond just three words.

                  [color=blue][color=green]
                  >> Strict mode, in my opinion, doesn't seem 'ready for primetime'.[/color][/color]
                  [color=blue]
                  >What you mean by strict mode?[/color]

                  Standards mode, then, as opposed to quirks mode. Not strict,
                  necessarily. Standards mode. But I might just loosely call it, strict,
                  because it seems more constricting, less flexible, and so more
                  descriptive.


                  Comment

                  • Mark Johnson

                    #10
                    Re: Complicated Question?

                    Brian <usenet3@juliet remblay.com.inv alid> wrote:
                    [color=blue]
                    >Mark Johnson wrote:[/color]
                    [color=blue][color=green]
                    >> But part of the strict mode, as I understand it, is that custom
                    >> attributes are not allowed.[/color][/color]
                    [color=blue]
                    >Custom attributes -- by that I assume you mean ones that you've made up
                    >for your own use -- are by definition not allowed in any version of
                    >HTML. But what has this to do with strict or quirks rendering mode?[/color]

                    I understood, and excuse me for that but standards mode if that's
                    better, that standards mode did not allow custom attributes. If they
                    aren't accessible by code, then functionality - necessary
                    functionality - might be lost.

                    [color=blue]
                    >Until you have a clear idea of the issues involved, your opinion is not
                    >likely to hold much sway around here.[/color]

                    It wouldn't be in any case. And oddly enough, I'm not bothered by
                    that.

                    Comment

                    • Brian

                      #11
                      Re: Complicated Question?

                      Mark Johnson wrote:[color=blue]
                      > Brian wrote:
                      >
                      >[color=green]
                      >> Mark Johnson wrote:[/color]
                      >
                      >[color=green][color=darkred]
                      >>> But part of the strict mode, as I understand it, is that custom
                      >>> attributes are not allowed.[/color][/color]
                      >
                      >[color=green]
                      >> Custom attributes -- by that I assume you mean ones that you've
                      >> made up for your own use -- are by definition not allowed in any
                      >> version of HTML. But what has this to do with strict or quirks
                      >> rendering mode?[/color][/color]

                      I should not have adopted your choice of words. To clarify: The
                      rendering modes are standards, almost standards, and quirks for Mozilla;
                      standards and quirks for MSIE 6/Win; and standards and quirks mode for
                      Opera. I don't think any other browser plays the dtd guessing game.

                      Strict and transitional (or loose) are terms used by the W3C to
                      distinguish between various flavors of HTML 4 and XHTML 1.0.
                      [color=blue]
                      > I understood, and excuse me for that but standards mode if that's
                      > better, that standards mode did not allow custom attributes.[/color]

                      You missed my point. Browsers do not switch rendering modes based on
                      whether the document validates or not. They determine which mode to use
                      based on whether a doc type declaration is present, and if so, which one.

                      --
                      Brian (remove "invalid" to email me)

                      Comment

                      • Lauri Raittila

                        #12
                        Re: Complicated Question?

                        Mark Johnson wrote;[color=blue]
                        > Brian <usenet3@juliet remblay.com.inv alid> wrote:
                        >[color=green]
                        > >Mark Johnson wrote:[/color]
                        >[color=green][color=darkred]
                        > >> But part of the strict mode, as I understand it, is that custom
                        > >> attributes are not allowed.[/color][/color]
                        >[color=green]
                        > >Custom attributes -- by that I assume you mean ones that you've made up
                        > >for your own use -- are by definition not allowed in any version of
                        > >HTML. But what has this to do with strict or quirks rendering mode?[/color]
                        >
                        > I understood, and excuse me for that but standards mode if that's
                        > better, that standards mode did not allow custom attributes. If they
                        > aren't accessible by code, then functionality - necessary
                        > functionality - might be lost.[/color]

                        Ever thought about about making it normal way?
                        [color=blue][color=green]
                        > >Until you have a clear idea of the issues involved, your opinion is not
                        > >likely to hold much sway around here.[/color]
                        >
                        > It wouldn't be in any case. And oddly enough, I'm not bothered by
                        > that.[/color]

                        *blonk*

                        --
                        Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>

                        Comment

                        • Mark Johnson

                          #13
                          Re: Complicated Question?

                          Brian <usenet3@juliet remblay.com.inv alid> wrote:
                          [color=blue]
                          >You missed my point. Browsers do not switch rendering modes based on
                          >whether the document validates or not. They determine which mode to use
                          >based on whether a doc type declaration is present, and if so, which one.[/color]

                          You're repeating back to me what _I_ originally wrote.

                          Comment

                          • Mark Johnson

                            #14
                            Re: Complicated Question?

                            Lauri Raittila <lauri@raittila .cjb.net> wrote:
                            [color=blue]
                            >Mark Johnson wrote;[color=green]
                            >> Brian <usenet3@juliet remblay.com.inv alid> wrote:[color=darkred]
                            >> >Mark Johnson wrote:[/color]
                            >>[color=darkred]
                            >> >> But part of the strict mode, as I understand it, is that custom
                            >> >> attributes are not allowed.[/color]
                            >>[color=darkred]
                            >> >Custom attributes -- by that I assume you mean ones that you've made up
                            >> >for your own use -- are by definition not allowed in any version of
                            >> >HTML. But what has this to do with strict or quirks rendering mode?[/color]
                            >>
                            >> I understood, and excuse me for that but standards mode if that's
                            >> better, that standards mode did not allow custom attributes. If they
                            >> aren't accessible by code, then functionality - necessary
                            >> functionality - might be lost.[/color][/color]
                            [color=blue]
                            >Ever thought about about making it normal way?[/color]

                            Sometimes to add a 'thinnest client' functionality, you might find it
                            important to store information in HTML/XHMTL, not in elements but in
                            attributes.

                            By the way, I've nothing against a 'tried and true' method. And often
                            people tend to converge on one or a couple of methods in any field,
                            for certain tasks and situations. But such 'normalcy' is generally
                            understood and defined. What do YOU mean?

                            Comment

                            • Neal

                              #15
                              Re: Complicated Question?

                              On Fri, 15 Oct 2004 19:13:28 -0700, Mark Johnson
                              <102334.12@comp userve.com> wrote:
                              [color=blue]
                              > Brian <usenet3@juliet remblay.com.inv alid> wrote:
                              >[color=green]
                              >> You missed my point. Browsers do not switch rendering modes based on
                              >> whether the document validates or not. They determine which mode to use
                              >> based on whether a doc type declaration is present, and if so, which
                              >> one.[/color]
                              >
                              > You're repeating back to me what _I_ originally wrote.[/color]

                              But it seemed from your messages that you misunderstood.

                              What actually happens to my knowledge is that the browser, say IE6, looks
                              for the precise string <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
                              "http://www.w3.org/TR/html4/strict.dtd"> and if it sees that, bingo, we're
                              in standards mode. If it sees <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
                              Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> it does
                              something different. And so on. If it sees nothing like this, it is quirks
                              mode.

                              What happens if you use a custom DTD? In the case of IE, it won't match
                              anything in memory, so it cannot use standards mode, it will revert to
                              some other mode.

                              So all we're saying is that if you don't have a standardized strict
                              doctype definition at the start of the document, you can't expect a
                              browser to use standards mode, it well may not.

                              Comment

                              Working...