Weird Opera float problem

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

    Weird Opera float problem

    I'm developing a site using CSS layout. One of the main divs contains
    the content, another contains the side bar. I want the content next to
    the sidebar so the content is floated left and the sidebar is floated
    right. This looks fine is Firefox and IE but doesn't in Opera ( Opera 6
    screenshot - http://www.browsercam.com/projects/171753/3119279.jpg ).

    I can't find any reference to any bugs in Opera that would cause it to
    behave like this, does anyone have any ideas?

    This is the URL of the page template I'm working on:


    and this is the URL of the stylesheet:


    Thanks

  • Lauri Raittila

    #2
    Re: Weird Opera float problem

    in comp.infosystem s.www.authoring.stylesheets, Andrew wrote:[color=blue]
    > I'm developing a site using CSS layout. One of the main divs contains
    > the content, another contains the side bar. I want the content next to
    > the sidebar so the content is floated left and the sidebar is floated
    > right. This looks fine is Firefox and IE but doesn't in Opera ( Opera 6
    > screenshot - http://www.browsercam.com/projects/171753/3119279.jpg ).[/color]

    Interesting, this type of layout should work in Opera 6. Only float bug I
    remeber is related to boxes that aren't divided by whitespace, but it
    shoudl not result something like this. I don't have Opera 6 installed, so
    can't say more.

    Anyway Opera 6, even if it has better support for CSS2 than IE or FF, is
    some old, and 6.0 is not the latest in branch either. I suspect it works
    at least in Opera 7 and 8.
    [color=blue]
    > I can't find any reference to any bugs in Opera that would cause it to
    > behave like this, does anyone have any ideas?[/color]

    AFAIK there is no known bug that causes this kind of effects.


    --
    Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
    Kohtuuhintainen yksiö/huone haussa Oulusta syyskuusta eteenpäin.
    Searching places to sleep on axis Bonn - Tsech - Poland - baltic sea in
    july

    Comment

    • Spartanicus

      #3
      Re: Weird Opera float problem

      "Andrew" <andrewisherwoo d@gmail.com> wrote:
      [color=blue]
      >This looks fine is Firefox and IE but doesn't in Opera ( Opera 6
      >screenshot - http://www.browsercam.com/projects/171753/3119279.jpg ).[/color]

      Opera 6 is ancient, rarely used anymore, not worth trying to debug
      cosmetic issues.

      --
      Spartanicus

      Comment

      • Danny@Kendal

        #4
        Re: Weird Opera float problem

        "Andrew" <andrewisherwoo d@gmail.com> wrote in message
        news:1119724684 .226231.272630@ g14g2000cwa.goo glegroups.com.. .[color=blue]
        > I'm developing a site using CSS layout. One of the main divs contains
        > the content, another contains the side bar. I want the content next to
        > the sidebar so the content is floated left and the sidebar is floated
        > right. This looks fine is Firefox and IE but doesn't in Opera ( Opera 6
        > screenshot - http://www.browsercam.com/projects/171753/3119279.jpg ).
        >
        > I can't find any reference to any bugs in Opera that would cause it to
        > behave like this, does anyone have any ideas?[/color]

        Opera6? That's like worrying about how Internet Explorer 4 displays a page.

        The page looks fine in Opera8.01, which is the latest release.


        Comment

        • Lauri Raittila

          #5
          Re: Weird Opera float problem

          in comp.infosystem s.www.authoring.stylesheets, Danny@Kendal wrote:
          [color=blue]
          > Opera6? That's like worrying about how Internet Explorer 4 displays a page.[/color]

          No, Opera 6 and even 5 could be used on low end machines quite
          reasonably, they work better than IE6 without JS in modern web. There is
          currently no security problems in Opera 6 (secunia reports crash bug, but
          I wouldn't consider it security problem)

          Opera just has gotten more major versions, so it seems that it is old.

          --
          Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
          Kohtuuhintainen yksiö/huone haussa Oulusta syyskuusta eteenpäin.
          Searching places to sleep on axis Bonn - Tsech - Poland - baltic sea in
          july

          Comment

          • Andrew

            #6
            Re: Weird Opera float problem

            So back to my original question, does anyone have any idea what's
            causing this odd behaviour?

            Comment

            • Lauri Raittila

              #7
              Re: Weird Opera float problem

              in comp.infosystem s.www.authoring.stylesheets, Andrew wrote:[color=blue]
              > So back to my original question, does anyone have any idea what's
              > causing this odd behaviour?[/color]

              Almost impossible to say without trying. Could be simple rounding error,
              as you do pixel perfect with other units. Try smaller width on right
              floated stuff, as it looks it is too wide.


              --
              Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
              Kohtuuhintainen yksiö/huone haussa Oulusta syyskuusta eteenpäin.
              Searching places to sleep on axis Bonn - Tsech - Poland - baltic sea in
              july

              Comment

              • Danny@Kendal

                #8
                Re: Weird Opera float problem

                "Andrew" <andrewisherwoo d@gmail.com> wrote in message
                news:1119953119 .049827.266340@ g47g2000cwa.goo glegroups.com.. .[color=blue]
                > So back to my original question, does anyone have any idea what's
                > causing this odd behaviour?[/color]

                Does the following link help?



                I've downloaded Opera6 and I'm trying to recreate the problem with a basic
                layout but so far everything looks exactly as expected. Humph! Damned
                Opera - never breaks when you want it to!


                Comment

                • Lauri Raittila

                  #9
                  Re: Weird Opera float problem

                  in comp.infosystem s.www.authoring.stylesheets, Danny@Kendal wrote:[color=blue]
                  > "Andrew" <andrewisherwoo d@gmail.com> wrote in message
                  > news:1119953119 .049827.266340@ g47g2000cwa.goo glegroups.com.. .[color=green]
                  > > So back to my original question, does anyone have any idea what's
                  > > causing this odd behaviour?[/color]
                  >
                  > Does the following link help?
                  >
                  > http://www.opera.com/docs/specs/opera6/[/color]

                  No, I know Opera 6 far better than that link...
                  [color=blue]
                  > I've downloaded Opera6 and I'm trying to recreate the problem with a basic
                  > layout but so far everything looks exactly as expected. Humph! Damned
                  > Opera - never breaks when you want it to![/color]

                  So it is most likely rounding error. Note that 1em of width is not always
                  same as 1em of margin, but 1px bigger or smaller.




                  --
                  Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
                  Kohtuuhintainen yksiö/huone haussa Oulusta syyskuusta eteenpäin.
                  Searching places to sleep on axis Bonn - Tsech - Poland - baltic sea in
                  july

                  Comment

                  • Danny@Kendal

                    #10
                    Re: Weird Opera float problem

                    "Andrew" <andrewisherwoo d@gmail.com> wrote in message
                    news:1119953119 .049827.266340@ g47g2000cwa.goo glegroups.com.. .[color=blue]
                    > So back to my original question, does anyone have any idea what's
                    > causing this odd behaviour?[/color]

                    Found it! (I think)

                    Older/some(?) versions of Opera didn't clip overflowed content properly. It
                    may not have been displayed but it did affect layout. The line height in
                    #topnav is not necessary. I downloaded a copy of your site, removed the
                    lineheight from the stylesheet and your page then displayed correctly.

                    Here is the offending code in your stylesheet.
                    (best viewed in monospace font)

                    #topnav { width: 780px;
                    height: 30px;
                    HERE----> line-height: 30px;
                    background: #D5E7FA url(topnav_b.gi f) repeat-x;
                    border-right: 1px solid #FFFFFF;
                    border-bottom: 1px solid #74A5D7;
                    margin: 0;
                    padding: 0;
                    }


                    Comment

                    • Andrew

                      #11
                      Re: Weird Opera float problem

                      Fantastic, who would have thought that was the cause?!

                      Thanks very much for all your hard work on this, and thanks also to
                      everyone else who offered suggestions :)

                      Comment

                      Working...