Layer Position Help in Dreamweaver

Discussion in 'Graphics & Multimedia' started by NsaneNoob, Dec 24, 2007.

  1. #1
    I am struggling with positioning the layer AP-DIV called now in Dreamweaver CS3.

    I need to center my whole layout but the layout is made of many layer so I want to center all the layer on the page so it looks centered in IE, FireFox, Opera etc.

    + REP to whoever can help me.
     
    NsaneNoob, Dec 24, 2007 IP
  2. jezzz

    jezzz Notable Member

    Messages:
    4,884
    Likes Received:
    190
    Best Answers:
    0
    Trophy Points:
    200
    #2
    Can u show! us the previews because working with layers doesn't allow multi-resolutions!! as you want and other browsers as well...
     
    jezzz, Dec 24, 2007 IP
  3. NsaneNoob

    NsaneNoob Peon

    Messages:
    2,103
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Okay. Let's take one layer. Here is the code:

    #apDiv6 {
    position:absolute;
    width:829px;
    height:29px;
    z-index:6;
    left: 270px;
    top: 127px;
    }

    This appears perfect on my resolution of 1400x900, but everywhere else its either to the left or to the right.
     
    NsaneNoob, Dec 24, 2007 IP
  4. jezzz

    jezzz Notable Member

    Messages:
    4,884
    Likes Received:
    190
    Best Answers:
    0
    Trophy Points:
    200
    #4
    Yes! Man it does happen also with me! but i make sites using 1024x768 resolutions becaue it's standard internet resolution but! 1400x900 found to be unrare and after making on default as i told you! site will display perfect on any higher resolutions except 800x600
     
    jezzz, Dec 24, 2007 IP
  5. NsaneNoob

    NsaneNoob Peon

    Messages:
    2,103
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Can you please explain more? I am using WRAP now and it might work. Can you please tell me how you fixed it?
     
    NsaneNoob, Dec 24, 2007 IP
  6. jezzz

    jezzz Notable Member

    Messages:
    4,884
    Likes Received:
    190
    Best Answers:
    0
    Trophy Points:
    200
    #6
    Turn! up your resolutions into 1024x768 and then start designing up the site!

    It works for Dreamweaver easily
     
    jezzz, Dec 24, 2007 IP
  7. jbladeus

    jbladeus Peon

    Messages:
    485
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #7
    do it like this in your stylesheet:
    
    body	{
      text-align: center;
      } 
    Code (markup):
    then in your wrapper div:
    #wrap   /* or whatever you want to call it */ { 
      margin: 0 [B]auto[/B];
      text-align: left;
      }
    Code (markup):
     
    jbladeus, Dec 27, 2007 IP