8 Replies Latest reply on Jul 26, 2006 1:46 PM by Newsgroup_User

    Positioning Issue

    GoOmegaDesign Level 1
      Help me position my objects correctly! I have a table (header) that must be docked to the top of the page (top:0;)
      When I set its postion:fixed; all the other layers ignore that it is there, and then either end up above or below my header. This is my first website, www.goomegadesign.com
      Please Help!

      -Paul
        • 1. Re: Positioning Issue
          aikb38 Level 1
          maybe set it up as a frame?
          • 2. Re: Positioning Issue
            baabgumbo Level 1
            I find that putting the text for all layers at the very end of the document helps them maintain their positions. If you put them anywhere else they cause problems.
            • 3. Re: Positioning Issue
              Level 7
              You need to take a break, step away from the keyboard, and get some good
              books on HTML, and perhaps CSS.

              *Do not use positioning until you understand it*. That includes layers.
              And don't even think of using frames!

              To make a table go right to the top of the page, you only need to control
              the page margins.

              Link to an external stylesheet (using DW's CSS editor), or embed a
              stylesheet in your code (between <head> and </head>) with the following
              style in it (embedded shown for cut-n-paste convenience) (assuming you want
              zero margins) -

              <style type="text/css">
              <!--
              body { margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0;
              padding:0; }
              -->
              </style>
              (when the value is zero, units are not required)

              you could also try

              body { margin: 0 0 0 0; padding:0; }

              or

              body { margin: 0; padding:0; }

              as a shorthand method.

              This will take care of the margins in IE4+ and NN6+.

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


              "GoOmegaDesign" <webforumsuser@macromedia.com> wrote in message
              news:ea8g10$9ke$1@forums.macromedia.com...
              > Help me position my objects correctly! I have a table (header) that must
              > be
              > docked to the top of the page (top:0;)
              > When I set its postion:fixed; all the other layers ignore that it is
              > there,
              > and then either end up above or below my header. This is my first
              > website,
              > www.goomegadesign.com
              > Please Help!
              >
              > -Paul
              >


              • 4. Re: Positioning Issue
                GoOmegaDesign Level 1
                any good frame tutorials?
                • 5. Re: Positioning Issue
                  Level 7
                  EGADS. There are only bad frame tutorials.

                  The reason for using or not using frames should be based on a) your site's
                  needs, and b) your willingness to accept the potential problems that frames
                  can create for you as developer and maintainer of the site and for your
                  visitors as casual users of the site.

                  I am down on frames because I believe that they create many more problems
                  than they solve.
                  Judging from the posts here, and the kinds of problems that are described,
                  the kind of person most likely to elect to use frames is also the kind of
                  person most likely ill-prepared fo solve the ensuing problems when they
                  arise. If you feel a) that you understand the problems and b) that you are
                  prepared to handle them when they occur, and c) that you have a need to use
                  frames, then by all means use them.

                  As far as I know, the most comprehensive discussions of frames and their
                  potential problems can be found on these two links -

                  http://apptools.com/rants/framesevil.php
                  http://www.tjkdesign.com/articles/frames/


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


                  "GoOmegaDesign" <webforumsuser@macromedia.com> wrote in message
                  news:ea8hk0$bkn$1@forums.macromedia.com...
                  > any good frame tutorials?


                  • 6. Re: Positioning Issue
                    Level 7
                    On Wed, 26 Jul 2006 19:32:48 +0000 (UTC), "GoOmegaDesign"
                    <webforumsuser@macromedia.com> wrote:

                    >Help me position my objects correctly! I have a table (header) that must be
                    >docked to the top of the page (top:0;)
                    > When I set its postion:fixed; all the other layers ignore that it is there,


                    See http://www.w3.org/TR/CSS21/visuren.html#fixed-positioning

                    In particular, fixed positioning takes an object out of the flow of the
                    document. Other objects on the page ignore it with respect to
                    determining where they will be positioned. Additionally, you need to
                    know that Internet Explorer does not support fixed positioning for
                    anything other than background images applied to the <body> tag.

                    Gary
                    • 7. Re: Positioning Issue
                      aikb38 Level 1
                      he says not to use frame.....and i want to know why.
                      • 8. Re: Positioning Issue
                        Level 7
                        I told you why in my post.

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


                        "aikb38" <webforumsuser@macromedia.com> wrote in message
                        news:ea8i1e$c34$1@forums.macromedia.com...
                        > he says not to use frame.....and i want to know why.