3 Replies Latest reply on Oct 2, 2007 6:41 AM by Newsgroup_User

    Apdivs  shifting in my Browser

    VIPGuilford
      I've attached a .html code of a home page design I've be working on. I built in DW with a div container with 2 ApDivs added in the container with a space between them. When I preview the file on my browser the APDivs move closer together. I thought that because the AP divs where absolutely positioned.....they wouldn't move. is there a way to prevent them from moving?

      Thanks!
        • 1. Re: Apdivs  shifting in my Browser
          Level 7
          You have not assigned either of them any position, i.e., left/top
          coordinates.

          Anyhow, what you are doubtlessly seeing is what you should see. With no
          coordinates, they will be slammed vertically together. The browser is
          correct....

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


          "VIPGuilford" <webforumsuser@macromedia.com> wrote in message
          news:fdrr0v$hij$1@forums.macromedia.com...
          > I've attached a .html code of a home page design I've be working on. I
          > built in
          > DW with a div container with 2 ApDivs added in the container with a space
          > between them. When I preview the file on my browser the APDivs move closer
          > together. I thought that because the AP divs where absolutely
          > positioned.....they wouldn't move. is there a way to prevent them from
          > moving?
          >
          > Thanks!
          >
          > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          > " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
          > <html xmlns=" http://www.w3.org/1999/xhtml">
          > <head>
          > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
          > <title>Untitled Document</title>
          > <style type="text/css">
          > <!--
          > #container {
          > background-color: #0000FF;
          > width: 760px;
          > margin-right: auto;
          > margin-left: auto;
          > height: 100%;
          > }
          > body {
          > background-color: #003300;
          > }
          > #apDiv1 {
          > position:absolute;
          > width:761px;
          > height:131px;
          > z-index:1;
          > background-color: #660000;
          > }
          > #apDiv2 {
          > position:absolute;
          > width:760px;
          > height:123px;
          > z-index:2;
          > background-color: #663399;
          > }
          > -->
          > </style>
          > </head>
          >
          > <body>
          > <div id="container">
          > <div id="apDiv1"></div>
          > <p> </p>
          > <p> </p>
          > <p>  </p>
          > <p> </p>
          > <div id="apDiv2"></div>
          > <p> </p>
          > <p> </p>
          > <p> </p>
          > <p> </p>
          > <p> </p>
          > <p> </p>
          > <p> </p>
          > <p> </p>
          > <p> </p>
          > <p> </p>
          > </div>
          > </body>
          > </html>
          >


          • 3. Re: Apdivs  shifting in my Browser
            Level 7
            You're welcome.

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


            "VIPGuilford" <webforumsuser@macromedia.com> wrote in message
            news:fdth75$g6s$1@forums.macromedia.com...
            > Thanks ACE!