7 Replies Latest reply on Jul 28, 2007 3:05 PM by Newsgroup_User

    Centering in a Frame

    theNodge
      I am new to Dreamweaver, and I am jsut working with a single gif. I want to ensure that it is centered both horizontally and vertical in any browser page that it is opened up in. I can get it to center horizontally, but not veritically. Can someone please help me out. Thanks. Peter
        • 1. Re: Centering in a Frame
          shadowcat2700
          Is there a certain reason you are using a frame? I don't know how to center is vertically in a frame, because I never use frames. However, if you were to use a table instead of a frame then you could click inside the cell and in the properties panel there are drop down menus for both 'horz' and 'vert' which can be set to middle. I know it's not exactly what you asked for but I hope it helps.
          • 2. Re: Centering in a Frame
            theNodge Level 1
            Actually, my mistake, I am using a table. Still, the issue is still present. If I create a table using the 100% Width function, their is still no way to create the same thing veritically. What I want is the same effect, that whatever way someone has there browser, the Vertical position of the image is centered, your noted option depends on the original table height, which if selected to a particular browser height, won't do what I want. Any thoughts? peter
            • 3. Re: Centering in a Frame
              Level 7
              http://www.apptools.com/examples/tableheight.php

              (table height is invalid HTML and always has been)

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


              "theNodge" <webforumsuser@macromedia.com> wrote in message
              news:f8ej8b$n0s$1@forums.macromedia.com...
              > Actually, my mistake, I am using a table. Still, the issue is still
              > present. If
              > I create a table using the 100% Width function, their is still no way to
              > create
              > the same thing veritically. What I want is the same effect, that whatever
              > way
              > someone has there browser, the Vertical position of the image is centered,
              > your
              > noted option depends on the original table height, which if selected to a
              > particular browser height, won't do what I want. Any thoughts? peter
              >


              • 4. Re: Centering in a Frame
                Level 7
                Use a CSS styled division instead of a table:

                <body>
                <div style="height: 50%; width: 50%; position: absolute; left: 25%; top:
                25%; overflow: auto; padding:10px;">
                <h1>Your Heading or image goes here</h1></div>
                </body>


                --Nancy O.
                Alt-Web Design & Publishing
                www.alt-web.com


                "theNodge" <webforumsuser@macromedia.com> wrote in message
                news:f8eeu3$ip5$1@forums.macromedia.com...
                > I am new to Dreamweaver, and I am jsut working with a single gif. I want
                to
                > ensure that it is centered both horizontally and vertical in any browser
                page
                > that it is opened up in. I can get it to center horizontally, but not
                > veritically. Can someone please help me out. Thanks. Peter
                >


                • 5. Re: Centering in a Frame
                  Level 7
                  Lousy thing to do to text, you 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
                  ==================


                  "Nancy O" <nancyoshea1@NOSPAMverizon.net> wrote in message
                  news:f8fods$4q2$1@forums.macromedia.com...
                  > Use a CSS styled division instead of a table:
                  >
                  > <body>
                  > <div style="height: 50%; width: 50%; position: absolute; left: 25%; top:
                  > 25%; overflow: auto; padding:10px;">
                  > <h1>Your Heading or image goes here</h1></div>
                  > </body>
                  >
                  >
                  > --Nancy O.
                  > Alt-Web Design & Publishing
                  > www.alt-web.com
                  >
                  >
                  > "theNodge" <webforumsuser@macromedia.com> wrote in message
                  > news:f8eeu3$ip5$1@forums.macromedia.com...
                  >> I am new to Dreamweaver, and I am jsut working with a single gif. I want
                  > to
                  >> ensure that it is centered both horizontally and vertical in any browser
                  > page
                  >> that it is opened up in. I can get it to center horizontally, but not
                  >> veritically. Can someone please help me out. Thanks. Peter
                  >>
                  >
                  >


                  • 6. Re: Centering in a Frame
                    Level 7
                    Agreed. OP said this was for an image.

                    :-)

                    "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
                    news:f8g1r9$eqo$1@forums.macromedia.com...
                    > Lousy thing to do to text, you 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
                    > ==================
                    >
                    >
                    > "Nancy O" <nancyoshea1@NOSPAMverizon.net> wrote in message
                    > news:f8fods$4q2$1@forums.macromedia.com...
                    > > Use a CSS styled division instead of a table:
                    > >
                    > > <body>
                    > > <div style="height: 50%; width: 50%; position: absolute; left: 25%; top:
                    > > 25%; overflow: auto; padding:10px;">
                    > > <h1>Your Heading or image goes here</h1></div>
                    > > </body>
                    > >
                    > >
                    > > --Nancy O.
                    > > Alt-Web Design & Publishing
                    > > www.alt-web.com
                    > >
                    > >
                    > > "theNodge" <webforumsuser@macromedia.com> wrote in message
                    > > news:f8eeu3$ip5$1@forums.macromedia.com...
                    > >> I am new to Dreamweaver, and I am jsut working with a single gif. I
                    want
                    > > to
                    > >> ensure that it is centered both horizontally and vertical in any
                    browser
                    > > page
                    > >> that it is opened up in. I can get it to center horizontally, but not
                    > >> veritically. Can someone please help me out. Thanks. Peter
                    > >>
                    > >
                    > >
                    >
                    >


                    • 7. Re: Centering in a Frame
                      Level 7
                      Ahh, right - your example threw me with the text contained in the div....

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


                      "Nancy O" <nancyoshea1@NOSPAMverizon.net> wrote in message
                      news:f8gaqa$o5e$1@forums.macromedia.com...
                      > Agreed. OP said this was for an image.
                      >
                      > :-)
                      >
                      > "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
                      > news:f8g1r9$eqo$1@forums.macromedia.com...
                      >> Lousy thing to do to text, you 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
                      >> ==================
                      >>
                      >>
                      >> "Nancy O" <nancyoshea1@NOSPAMverizon.net> wrote in message
                      >> news:f8fods$4q2$1@forums.macromedia.com...
                      >> > Use a CSS styled division instead of a table:
                      >> >
                      >> > <body>
                      >> > <div style="height: 50%; width: 50%; position: absolute; left: 25%;
                      >> > top:
                      >> > 25%; overflow: auto; padding:10px;">
                      >> > <h1>Your Heading or image goes here</h1></div>
                      >> > </body>
                      >> >
                      >> >
                      >> > --Nancy O.
                      >> > Alt-Web Design & Publishing
                      >> > www.alt-web.com
                      >> >
                      >> >
                      >> > "theNodge" <webforumsuser@macromedia.com> wrote in message
                      >> > news:f8eeu3$ip5$1@forums.macromedia.com...
                      >> >> I am new to Dreamweaver, and I am jsut working with a single gif. I
                      > want
                      >> > to
                      >> >> ensure that it is centered both horizontally and vertical in any
                      > browser
                      >> > page
                      >> >> that it is opened up in. I can get it to center horizontally, but not
                      >> >> veritically. Can someone please help me out. Thanks. Peter
                      >> >>
                      >> >
                      >> >
                      >>
                      >>
                      >
                      >