Thread: Layers Problems

    #1
  1. No Profile Picture
    L0-t3k
    Guest
    Devshed Newbie (0 - 499 posts)
    How can I get my layers to show up centered
    as opposed to a specific distance from top
    and left of screen?
    I'm using DreamWeaver2
  2. #2
  3. No Profile Picture
    Ranj
    Guest
    Devshed Newbie (0 - 499 posts)
    Hi I have just started using DW2, I think you can justt stack the layers on top of one another.
  4. #3
  5. No Profile Picture
    nico
    Guest
    Devshed Newbie (0 - 499 posts)
    in dreamweaver2, you cannot position your layers in the center (or any other percentage values) of your page.

    one solution would be to code some javascript that checks the window's innerHeight and innerWidth, and the layer's height and width, and then set the layers top position to (innerHeight-height)/2 and the left position to (innerWidth-width)/2.
    it will be centered then.. however, this requires some javascript skills, since this has to be done in 2 completely different ways on IE and Netscape...

    another solution would be to put the layers in a frame, that has a fixed size, i.e. 500x400 px or so. if that frame is centered, and you position the layer at the correct position, it will be centered in all screen resolutions..

    (i think i have that layer-centering javascript stuff around somewhere, email me if you want it --> nico@better-image.nl)
  6. #4
  7. No Profile Picture
    L0-t3k
    Guest
    Devshed Newbie (0 - 499 posts)
    Thank you. That answers the question.

Similar Threads

  1. Layers and Tables - Problems with positioning
    By dreamstring in forum HTML Programming
    Replies: 8
    Last Post: December 9th, 2003, 03:06 PM
  2. NS problems with 100% layers
    By PaleSaint in forum HTML Programming
    Replies: 1
    Last Post: January 31st, 2003, 06:14 AM
  3. problems with layers
    By thuynh7 in forum HTML Programming
    Replies: 1
    Last Post: October 4th, 2001, 12:05 PM
  4. Layers & Scrollbar problems
    By Mintyman in forum HTML Programming
    Replies: 3
    Last Post: November 1st, 2000, 05:53 AM
  5. more problems with div layers
    By merkinmuffley in forum HTML Programming
    Replies: 1
    Last Post: August 28th, 2000, 08:54 AM

IMN logo majestic logo threadwatch logo seochat tools logo