1 2 Previous Next 45 Replies Latest reply: Jan 15, 2007 7:51 AM by Newsgroup_User RSS

    Background image positioning

    bkoopers Community Member
      I am using the following CSS style code to position a background image in a div window:

      div#midwindow {
      background: url(backgrounds\back_news_dim.jpg);
      background-position: 0px 0px;
      background-repeat: no-repeat;
      background-attachment: fixed;
      }

      Here is a sample webpage:

      http://lourds.com/newsx.htm

      When viewed with Internet Explorer v6, the background image is positioned perfectly in the div window. With Internet Explorer v7, the image is shifted about a third of the way to the left. With Firefox v2, Netscape v7.2, and Opera v7.52, the background image is not displayed at all.

      What code can I use to display and position the background image in a div window in the same position for all these web browsers (or at least IE v6 and v7 and Firefox)?

      Thanks to anyone who can help me out.
        • 1. Re: Background image positioning
          Newsgroup_User Community Member
          .oO(bkoopers)

          >I am using the following CSS style code to position a background image in a div
          >window:
          >
          > div#midwindow {
          > background: url(backgrounds\back_news_dim.jpg);

          Replace the backslash with a slash, then check again.

          > background-position: 0px 0px;
          > background-repeat: no-repeat;
          > background-attachment: fixed;
          > }

          You could use a shorthand property instead:

          background: url(backgrounds/back_news_dim.jpg) no-repeat fixed;

          > When viewed with Internet Explorer v6, the background image is positioned
          >perfectly in the div window. With Internet Explorer v6, the image is shifted
          >about a third of the way to the left. With Firefox v2, Netscape v7.2, and Opera
          >v7.52, the background image is not displayed at all.
          >
          > What code can I use to display and position the background image in a div
          >window in the same position for all these web browsers (or at least IE v6 and
          >v7 and Firefox)?

          Fixed background images are always positioned relative to the browser
          viewport, not to the element they belong to. If you want the image to be
          positioned in the div's corner remove the 'background-attachment'
          property.

          Micha
          • 2. Re: Background image positioning
            Newsgroup_User Community Member
            Don't use background-attachment with IE6 for anything other than the body
            tag. Please.

            --
            Murray --- ICQ 71997575
            Adobe Community Expert
            (If you *MUST* email me, don't LAUGH when you do so!)
            ==================
            http://www.dreamweavermx-templates.com - Template Triage!
            http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
            http://www.dwfaq.com - DW FAQs, Tutorials & Resources
            http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
            ==================


            "Michael Fesser" <netizen@gmx.de> wrote in message
            news:lskaq2h7ok787n2vnol38mk40prs6o0bqk@4ax.com...
            > .oO(bkoopers)
            >
            >>I am using the following CSS style code to position a background image in
            >>a div
            >>window:
            >>
            >> div#midwindow {
            >> background: url(backgrounds\back_news_dim.jpg);
            >
            > Replace the backslash with a slash, then check again.
            >
            >> background-position: 0px 0px;
            >> background-repeat: no-repeat;
            >> background-attachment: fixed;
            >> }
            >
            > You could use a shorthand property instead:
            >
            > background: url(backgrounds/back_news_dim.jpg) no-repeat fixed;
            >
            >> When viewed with Internet Explorer v6, the background image is positioned
            >>perfectly in the div window. With Internet Explorer v6, the image is
            >>shifted
            >>about a third of the way to the left. With Firefox v2, Netscape v7.2, and
            >>Opera
            >>v7.52, the background image is not displayed at all.
            >>
            >> What code can I use to display and position the background image in a div
            >>window in the same position for all these web browsers (or at least IE v6
            >>and
            >>v7 and Firefox)?
            >
            > Fixed background images are always positioned relative to the browser
            > viewport, not to the element they belong to. If you want the image to be
            > positioned in the div's corner remove the 'background-attachment'
            > property.
            >
            > Micha


            • 3. Re: Background image positioning
              rabbitdesign Community Member
              You don't say whether you are using Dreamweaver to code the page, and whether Dreamweaver has generated this CSS after inserting a background image
              • 4. Re: Background image positioning
                bkoopers Community Member
                I inserted the background image code manually.

                If there is a way to do it with Dreamweaver, I would like to know that too. Thanks.
                • 5. Re: Background image positioning
                  Newsgroup_User Community Member
                  Sure there is. What do you need to know?

                  --
                  Murray --- ICQ 71997575
                  Adobe Community Expert
                  (If you *MUST* email me, don't LAUGH when you do so!)
                  ==================
                  http://www.dreamweavermx-templates.com - Template Triage!
                  http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                  http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                  http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                  ==================


                  "bkoopers" <webforumsuser@macromedia.com> wrote in message
                  news:eo3m0d$p3p$1@forums.macromedia.com...
                  >I inserted the background image code manually.
                  >
                  > If there is a way to do it with Dreamweaver, I would like to know that
                  > too. Thanks.


                  • 6. Re: Background image positioning
                    bkoopers Community Member
                    Murray:

                    If I remove the "background-attachment: fixed" code line, then the background image does not stay fixed when the div window is scrolled (it scrolls out of view with the foreground text).

                    Michael:

                    I tried changing url(backgrounds\back_news_dim.jpg) to url(backgrounds/back_news_dim.jpg) but it made no difference.

                    I tried the shorthand (one line) code method but that also made no difference.

                    If I don't use the "background-attachment: fixed" code, then what code is needed to keep the background image from scrolling?
                    • 7. Re: Background image positioning
                      bkoopers Community Member
                      I would like to know what code to use to position a fixed (non-scrolling) background image at specified coordinates in a scrolling div window that will be viewable and positioned at the same spot in all the major web browsers. Once I know the correct code to do that, then I would like to know how to use Dreamweaver to add that code in other webpages.
                      • 8. Re: Background image positioning
                        Newsgroup_User Community Member
                        Yes, and IE6 goes nuts when it sees that for the reason that Michael
                        mentioned. Even though you have it inside an element, it's still fixed with
                        regard to the body of the page.

                        It just ain't gonna work.

                        --
                        Murray --- ICQ 71997575
                        Adobe Community Expert
                        (If you *MUST* email me, don't LAUGH when you do so!)
                        ==================
                        http://www.dreamweavermx-templates.com - Template Triage!
                        http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                        http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                        http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                        ==================


                        "bkoopers" <webforumsuser@macromedia.com> wrote in message
                        news:eo3n19$qg0$1@forums.macromedia.com...
                        > Murray:
                        >
                        > If I remove the "background-attachment: fixed" code line, then the
                        > background
                        > image does not stay fixed when the div window is scrolled (it scrolls out
                        > of
                        > view with the foreground text).
                        >
                        > Michael:
                        >
                        > I tried changing url(backgrounds\back_news_dim.jpg) to
                        > url(backgrounds/back_news_dim.jpg) but it made no difference.
                        >
                        > I tried the shorthand (one line) code method but that also made no
                        > difference.
                        >
                        > If I don't use the "background-attachment: fixed" code, then what code is
                        > needed to keep the background image from scrolling?
                        >
                        >


                        • 9. Re: Background image positioning
                          Newsgroup_User Community Member
                          You cannot do this reliably.

                          --
                          Murray --- ICQ 71997575
                          Adobe Community Expert
                          (If you *MUST* email me, don't LAUGH when you do so!)
                          ==================
                          http://www.dreamweavermx-templates.com - Template Triage!
                          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                          http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                          ==================


                          "bkoopers" <webforumsuser@macromedia.com> wrote in message
                          news:eo3o8r$s12$1@forums.macromedia.com...
                          >I would like to know what code to use to position a fixed (non-scrolling)
                          > background image at specified coordinates in a scrolling div window that
                          > will
                          > be viewable and positioned at the same spot in all the major web browsers.
                          > Once
                          > I know the correct code to do that, then I would like to know how to use
                          > Dreamweaver to add that code in other webpages.
                          >


                          • 10. Re: Background image positioning
                            bkoopers Community Member
                            It is hard to believe that something as simple in concept as this cannot be done. Am I the only one that wants to do this?

                            Is there any code other than what I used that at least does a better job (i.e., positions in the same spot with IE6 and IE7 or displays at all in the other web browsers)?
                            • 11. Re: Background image positioning
                              Newsgroup_User Community Member
                              On Wed, 10 Jan 2007 17:21:54 -0500, "Murray *ACE*"
                              <forums@HAHAgreat-web-sights.com> wrote:

                              >Even though you have it inside an element, it's still fixed with
                              >regard to the body of the page.

                              That's as it should be according to the spec:
                              http://www.w3.org/TR/CSS21/colors.html#background-properties

                              IE gets it wrong and tries to position it relative to its container.

                              Gary
                              • 12. Re: Background image positioning
                                Newsgroup_User Community Member
                                bkoopers wrote:
                                > I am using the following CSS style code to position a background image in a div
                                > window:
                                >
                                > div#midwindow {
                                > background: url(backgrounds\back_news_dim.jpg);
                                > background-position: 0px 0px;
                                > background-repeat: no-repeat;
                                > background-attachment: fixed;
                                > }

                                Best to be changing this bit......

                                background: url(backgrounds\back_news_dim.jpg);

                                to

                                background: url(backgrounds/back_news_dim.jpg);

                                --
                                chin chin
                                Sinclair
                                • 13. Re: Background image positioning
                                  Newsgroup_User Community Member
                                  Right - just backwards.

                                  --
                                  Murray --- ICQ 71997575
                                  Adobe Community Expert
                                  (If you *MUST* email me, don't LAUGH when you do so!)
                                  ==================
                                  http://www.dreamweavermx-templates.com - Template Triage!
                                  http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                  http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                  http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                                  ==================


                                  "Gary White" <gary@apptools.com> wrote in message
                                  news:d6saq2t563nlvr0bsn3tsjnr5e00iihmfm@4ax.com...
                                  > On Wed, 10 Jan 2007 17:21:54 -0500, "Murray *ACE*"
                                  > <forums@HAHAgreat-web-sights.com> wrote:
                                  >
                                  >>Even though you have it inside an element, it's still fixed with
                                  >>regard to the body of the page.
                                  >
                                  > That's as it should be according to the spec:
                                  > http://www.w3.org/TR/CSS21/colors.html#background-properties
                                  >
                                  > IE gets it wrong and tries to position it relative to its container.
                                  >
                                  > Gary


                                  • 14. Re: Background image positioning
                                    bkoopers Community Member
                                    djinn:

                                    As I indicated previously, I tried changing "\" to "/" but it made no difference.
                                    • 15. Re: Background image positioning
                                      bkoopers Community Member
                                      Gary White:

                                      IE7 gets it wrong but IE6 gets it right. Why is that?
                                      • 16. Re: Background image positioning
                                        Newsgroup_User Community Member
                                        bkoopers wrote:
                                        > djinn:
                                        >
                                        > As I indicated previously, I tried changing "\" to "/" but it made no difference.

                                        It should make it show in FF

                                        HTH

                                        --
                                        chin chin
                                        Sinclair
                                        • 17. Re: Background image positioning
                                          Newsgroup_User Community Member
                                          djinn wrote:
                                          > bkoopers wrote:
                                          >> djinn:
                                          >>
                                          >> As I indicated previously, I tried changing "\" to "/" but it made no
                                          >> difference.
                                          >
                                          > It should make it show in FF
                                          >
                                          > HTH
                                          >


                                          div#midwindow {
                                          background: url(backgrounds/back_news_dim.jpg) no-repeat center top;
                                          }

                                          HTH

                                          --
                                          chin chin
                                          Sinclair
                                          • 18. Re: Background image positioning
                                            bkoopers Community Member
                                            djinn:

                                            Thanks. I changed it to a "/" and now it shows in Firefox and Netscape but it is shifted to the left even more than with IE7.

                                            http://lourds.com/newsx.htm

                                            Murray appears to say there is no way to position the background image in the same fixed spot as viewed by IE6, IE7, FF and NS. Does everyone else agree or does someone know a way to do it?
                                            • 19. Re: Background image positioning
                                              Newsgroup_User Community Member
                                              bkoopers wrote:
                                              > djinn:
                                              >
                                              > Thanks. I changed it to a "/" and now it shows in Firefox and Netscape but it
                                              > is shifted to the left even more than with IE7.
                                              >
                                              > http://lourds.com/newsx.htm

                                              div#midwindow {
                                              background: url(backgrounds/back_news_dim.jpg) no-repeat center top;
                                              }

                                              Doesn't do it?


                                              --
                                              chin chin
                                              Sinclair
                                              • 20. Re: Background image positioning
                                                Newsgroup_User Community Member
                                                He wants position:fixed, Sinclair. There is no way to do it on anything
                                                other than the <body> tag, since IE gets it wrong by using the container
                                                instead.

                                                --
                                                Murray --- ICQ 71997575
                                                Adobe Community Expert
                                                (If you *MUST* email me, don't LAUGH when you do so!)
                                                ==================
                                                http://www.dreamweavermx-templates.com - Template Triage!
                                                http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                                http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                                http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                                                ==================


                                                "djinn" <scobies@dsl.pipexYerKitAff.com> wrote in message
                                                news:eo41qi$9ij$1@forums.macromedia.com...
                                                > bkoopers wrote:
                                                >> djinn:
                                                >>
                                                >> Thanks. I changed it to a "/" and now it shows in Firefox and Netscape
                                                >> but it is shifted to the left even more than with IE7.
                                                >>
                                                >> http://lourds.com/newsx.htm
                                                >
                                                > div#midwindow {
                                                > background: url(backgrounds/back_news_dim.jpg) no-repeat center top;
                                                > }
                                                >
                                                > Doesn't do it?
                                                >
                                                >
                                                > --
                                                > chin chin
                                                > Sinclair


                                                • 21. Re: Background image positioning
                                                  bkoopers Community Member
                                                  djinn:

                                                  Thanks. I changed it to your code:

                                                  http://lourds.com/newsx.htm

                                                  It now displays correctly and stays fixed with FF, NS and Opera but with IE6 and IE7, although it is positioned correctly, it does not stay fixed (it scrolls up and out of sight with the div window scroll).

                                                  Can you suggest something that not stop IE6 and IE7 from scrolling the background image?
                                                  • 22. Re: Background image positioning
                                                    Newsgroup_User Community Member
                                                    Murray *ACE* wrote:
                                                    > He wants position:fixed, Sinclair. There is no way to do it on anything
                                                    > other than the <body> tag, since IE gets it wrong by using the container
                                                    > instead.
                                                    >

                                                    My bad - I thought that this had been accepted by the OP and it was now
                                                    just a positional thing!!

                                                    --
                                                    chin chin
                                                    Sinclair
                                                    • 23. Re: Background image positioning
                                                      Newsgroup_User Community Member
                                                      Read my lips. It can't be done on anything but the body tag.

                                                      Get it? Can't be done. Nope. Uh huh. Nada. No way jose....

                                                      --
                                                      Murray --- ICQ 71997575
                                                      Adobe Community Expert
                                                      (If you *MUST* email me, don't LAUGH when you do so!)
                                                      ==================
                                                      http://www.dreamweavermx-templates.com - Template Triage!
                                                      http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                                      http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                                      http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                                                      ==================


                                                      "bkoopers" <webforumsuser@macromedia.com> wrote in message
                                                      news:eo4532$d9f$1@forums.macromedia.com...
                                                      > djinn:
                                                      >
                                                      > Thanks. I changed it to your code:
                                                      >
                                                      > http://lourds.com/newsx.htm
                                                      >
                                                      > It now displays correctly and stays fixed with FF, NS and Opera but with
                                                      > IE6
                                                      > and IE7, although it is positioned correctly, it does not stay fixed (it
                                                      > scrolls up and out of sight with the div window scroll).
                                                      >
                                                      > Can you suggest something that not stop IE6 and IE7 from scrolling the
                                                      > background image?
                                                      >


                                                      • 24. Re: Background image positioning
                                                        Newsgroup_User Community Member
                                                        bkoopers wrote:

                                                        > Can you suggest something that not stop IE6 and IE7 from scrolling the
                                                        > background image?
                                                        >

                                                        Unfortunately that's something you will have to live with - sorry!

                                                        --
                                                        chin chin
                                                        Sinclair
                                                        • 25. Re: Background image positioning
                                                          bkoopers Community Member
                                                          Murray:

                                                          This problem existed in IE6. IE7 was just released. Is there a reason why Microsoft did not fix this in IE7?

                                                          djinn:

                                                          Who or what is the "OP"?
                                                          • 26. Re: Background image positioning
                                                            bkoopers Community Member
                                                            If there any way to do this with javascript (or is that a question for a javascript forum)?
                                                            • 27. Re: Background image positioning
                                                              bkoopers Community Member
                                                              I know Murray says it can't be done, but I have a difficult time giving up on any problem until a solution is found.

                                                              I changed the code to this:

                                                              div#midwindow {
                                                              background: url(backgrounds/back_news_dim.jpg) no-repeat fixed 240px 10px;
                                                              }

                                                              Now it works (fixed, no scrolling when div window scrolls) in IE7, Firefox, Netscape and Opera. In IE6, the image is shifted about 50% too far to the right.

                                                              Actually, I also had to position the image an extra 20 pixels to the right. At 220 pixels, IE7 placed the right edge of the image flush with the scroll bar. The other browsers had the image 20 pixels to the left (leaving a black vertical section). Since the image is wider than the div window, I was able to shift it to the right and have it still look OK in IE7.

                                                              Eventually, all IE6 users will upgrade to IE7 but that might take years. In the mean time, since I got this far, can anybody think of a workaround to get IE6 to position the image correctly?
                                                              • 28. Re: Background image positioning
                                                                Newsgroup_User Community Member
                                                                No. As far as I know, it cannot be done.

                                                                --
                                                                Murray --- ICQ 71997575
                                                                Adobe Community Expert
                                                                (If you *MUST* email me, don't LAUGH when you do so!)
                                                                ==================
                                                                http://www.dreamweavermx-templates.com - Template Triage!
                                                                http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                                                http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                                                http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                                                                ==================


                                                                "bkoopers" <webforumsuser@macromedia.com> wrote in message
                                                                news:eo48cj$gqa$1@forums.macromedia.com...
                                                                > If there any way to do this with javascript (or is that a question for a
                                                                > javascript forum)?


                                                                • 29. Re: Background image positioning
                                                                  Newsgroup_User Community Member
                                                                  You would have to ask Microsoft that question.

                                                                  --
                                                                  Murray --- ICQ 71997575
                                                                  Adobe Community Expert
                                                                  (If you *MUST* email me, don't LAUGH when you do so!)
                                                                  ==================
                                                                  http://www.dreamweavermx-templates.com - Template Triage!
                                                                  http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                                                  http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                                                  http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                                                                  ==================


                                                                  "bkoopers" <webforumsuser@macromedia.com> wrote in message
                                                                  news:eo465p$eal$1@forums.macromedia.com...
                                                                  > Murray:
                                                                  >
                                                                  > This problem existed in IE6. IE7 was just released. Is there a reason why
                                                                  > Microsoft did not fix this in IE7?
                                                                  >
                                                                  > djinn:
                                                                  >
                                                                  > Who or what is the "OP"?
                                                                  >


                                                                  • 30. Re: Background image positioning
                                                                    Newsgroup_User Community Member
                                                                    bkoopers wrote:
                                                                    > Murray:
                                                                    >
                                                                    > This problem existed in IE6. IE7 was just released. Is there a reason why Microsoft did not fix this in IE7?
                                                                    >
                                                                    > djinn:
                                                                    >
                                                                    > Who or what is the "OP"?
                                                                    >

                                                                    OP - Original Poster

                                                                    If you're not too fussed about validation etc - I wonder if this works

                                                                    Remove this from your style......

                                                                    div#midwindow { background: transparent no-repeat fixed 240px 10px; }

                                                                    Now in your HTML

                                                                    find this bit.....

                                                                    <body>
                                                                    <center>
                                                                    <table width="760" border="0" cellpadding="0" cellspacing="0">

                                                                    and replace with......

                                                                    <body>
                                                                    <center>
                                                                    <table width="760" border="0" cellpadding="0" cellspacing="0"
                                                                    background="back_news_dim.jpg">

                                                                    It may or may not work - nut worth a try.

                                                                    HTH

                                                                    --
                                                                    chin chin
                                                                    Sinclair
                                                                    • 31. Re: Background image positioning
                                                                      Newsgroup_User Community Member
                                                                      How would that emulate background-attachment:fixed?

                                                                      --
                                                                      Murray --- ICQ 71997575
                                                                      Adobe Community Expert
                                                                      (If you *MUST* email me, don't LAUGH when you do so!)
                                                                      ==================
                                                                      http://www.dreamweavermx-templates.com - Template Triage!
                                                                      http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                                                      http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                                                      http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                                                                      ==================


                                                                      "djinn" <scobies@dsl.pipexYerKitAff.com> wrote in message
                                                                      news:eo59h9$ncf$1@forums.macromedia.com...
                                                                      > bkoopers wrote:
                                                                      >> Murray:
                                                                      >>
                                                                      >> This problem existed in IE6. IE7 was just released. Is there a reason why
                                                                      >> Microsoft did not fix this in IE7?
                                                                      >>
                                                                      >> djinn:
                                                                      >>
                                                                      >> Who or what is the "OP"?
                                                                      >>
                                                                      >
                                                                      > OP - Original Poster
                                                                      >
                                                                      > If you're not too fussed about validation etc - I wonder if this works
                                                                      >
                                                                      > Remove this from your style......
                                                                      >
                                                                      > div#midwindow { background: transparent no-repeat fixed 240px 10px; }
                                                                      >
                                                                      > Now in your HTML
                                                                      >
                                                                      > find this bit.....
                                                                      >
                                                                      > <body>
                                                                      > <center>
                                                                      > <table width="760" border="0" cellpadding="0" cellspacing="0">
                                                                      >
                                                                      > and replace with......
                                                                      >
                                                                      > <body>
                                                                      > <center>
                                                                      > <table width="760" border="0" cellpadding="0" cellspacing="0"
                                                                      > background="back_news_dim.jpg">
                                                                      >
                                                                      > It may or may not work - nut worth a try.
                                                                      >
                                                                      > HTH
                                                                      >
                                                                      > --
                                                                      > chin chin
                                                                      > Sinclair


                                                                      • 32. Re: Background image positioning
                                                                        bkoopers Community Member
                                                                        My original code works correctly with only IE6 and the current code works correctly with all web browsers except IE6. Is there a way to insert conditional code that checks for the web browser name and version for IE6 and uses one code line for IE6 and the other code line for all other browsers?
                                                                        • 33. Re: Background image positioning
                                                                          Newsgroup_User Community Member
                                                                          Google "Conditional Comments"....

                                                                          --
                                                                          Murray --- ICQ 71997575
                                                                          Adobe Community Expert
                                                                          (If you *MUST* email me, don't LAUGH when you do so!)
                                                                          ==================
                                                                          http://www.dreamweavermx-templates.com - Template Triage!
                                                                          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                                                          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                                                          http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                                                                          ==================


                                                                          "bkoopers" <webforumsuser@macromedia.com> wrote in message
                                                                          news:eo5bov$pl2$1@forums.macromedia.com...
                                                                          > My original code works correctly with only IE6 and the current code works
                                                                          > correctly with all web browsers except IE6. Is there a way to insert
                                                                          > conditional code that checks for the web browser name and version for IE6
                                                                          > and
                                                                          > uses one code line for IE6 and the other code line for all other browsers?
                                                                          >


                                                                          • 34. Re: Background image positioning
                                                                            Newsgroup_User Community Member
                                                                            Murray *ACE* wrote:
                                                                            > How would that emulate background-attachment:fixed?
                                                                            >

                                                                            Well the background is on the table which remains fixed and the text is
                                                                            on the div which scrolls over the table - no?

                                                                            --
                                                                            chin chin
                                                                            Sinclair
                                                                            • 35. Re: Background image positioning
                                                                              Newsgroup_User Community Member
                                                                              bkoopers wrote:
                                                                              > My original code works correctly with only IE6 and the current code works
                                                                              > correctly with all web browsers except IE6. Is there a way to insert
                                                                              > conditional code that checks for the web browser name and version for IE6 and
                                                                              > uses one code line for IE6 and the other code line for all other browsers?
                                                                              >


                                                                              http://www.weesites.co.uk/bloopers/

                                                                              --
                                                                              chin chin
                                                                              Sinclair
                                                                              • 36. Re: Background image positioning
                                                                                Newsgroup_User Community Member
                                                                                No - the table doesn't remain fixed as the page scrolls.

                                                                                --
                                                                                Murray --- ICQ 71997575
                                                                                Adobe Community Expert
                                                                                (If you *MUST* email me, don't LAUGH when you do so!)
                                                                                ==================
                                                                                http://www.dreamweavermx-templates.com - Template Triage!
                                                                                http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                                                                http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                                                                http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                                                                                ==================


                                                                                "djinn" <scobies@dsl.pipexYerKitAff.com> wrote in message
                                                                                news:eo5ck2$qel$1@forums.macromedia.com...
                                                                                > Murray *ACE* wrote:
                                                                                >> How would that emulate background-attachment:fixed?
                                                                                >>
                                                                                >
                                                                                > Well the background is on the table which remains fixed and the text is on
                                                                                > the div which scrolls over the table - no?
                                                                                >
                                                                                > --
                                                                                > chin chin
                                                                                > Sinclair


                                                                                • 37. Re: Background image positioning
                                                                                  Newsgroup_User Community Member
                                                                                  Murray *ACE* wrote:
                                                                                  > He wants position:fixed, Sinclair. There is no way to do it on anything
                                                                                  > other than the <body> tag, since IE gets it wrong by using the container
                                                                                  > instead.


                                                                                  Yes again sorry - I thought this had been undersood by the OP and it was
                                                                                  a matter of positioning of the content (which I should have said in my
                                                                                  last post as opposed to page) - i think it's time for my nap ;-)

                                                                                  --
                                                                                  chin chin
                                                                                  Sinclair
                                                                                  • 38. Re: Background image positioning
                                                                                    Newsgroup_User Community Member
                                                                                    On Thu, 11 Jan 2007 00:00:36 +0000 (UTC), "bkoopers"
                                                                                    <webforumsuser@macromedia.com> wrote:

                                                                                    >IE7 gets it wrong but IE6 gets it right. Why is that?


                                                                                    IE6 gets it wrong. I haven't tested that particular issue in IE7. The
                                                                                    point is that there will be a lot of IE6 browsers around for quite a
                                                                                    while. That means that using fixed positioning for anything other than a
                                                                                    body's background image is going to be unreliable. Perhaps, in a few
                                                                                    years, when IE6 becomes a dead issue, IE7's handling of it will be
                                                                                    important enough to check.

                                                                                    Gary
                                                                                    • 39. Re: Background image positioning
                                                                                      Newsgroup_User Community Member
                                                                                      The issue is BACKGROUND-ATTACHMENT:FIXED, not position:fixed, no?

                                                                                      --
                                                                                      Murray --- ICQ 71997575
                                                                                      Adobe Community Expert
                                                                                      (If you *MUST* email me, don't LAUGH when you do so!)
                                                                                      ==================
                                                                                      http://www.dreamweavermx-templates.com - Template Triage!
                                                                                      http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                                                                      http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                                                                      http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                                                                                      ==================


                                                                                      "Gary White" <gary@apptools.com> wrote in message
                                                                                      news:d5ncq29dlsv173i7u095nh0r75jdt6nj94@4ax.com...
                                                                                      > On Thu, 11 Jan 2007 00:00:36 +0000 (UTC), "bkoopers"
                                                                                      > <webforumsuser@macromedia.com> wrote:
                                                                                      >
                                                                                      >>IE7 gets it wrong but IE6 gets it right. Why is that?
                                                                                      >
                                                                                      >
                                                                                      > IE6 gets it wrong. I haven't tested that particular issue in IE7. The
                                                                                      > point is that there will be a lot of IE6 browsers around for quite a
                                                                                      > while. That means that using fixed positioning for anything other than a
                                                                                      > body's background image is going to be unreliable. Perhaps, in a few
                                                                                      > years, when IE6 becomes a dead issue, IE7's handling of it will be
                                                                                      > important enough to check.
                                                                                      >
                                                                                      > Gary


                                                                                      1 2 Previous Next