Results 1 to 3 of 3

Thread: Layer position in DHTML

  1. #1
    Join Date
    Oct 2005
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Layer position in DHTML

    Hey all,

    I'm building a site using DHTML and Dreamweaver as a base, and I'm currently having trouble. I've created a layer to store text which sits over an image, which looks fine in Dreamweaver, but when loaded onto the page the layer has moved about 80 pixels to the left and about 20 pixels below what it should be!

    My first thoughts were that this was due to positioning type, and therefore tried fixed position, relative position etc, but this seemed to delete the layer and send the image to the top of the page!

    Here is the code for this layer,

    <DIV id="Layer1" style="position:absolute; left:564px; top:495px; width:191px; height:213px; z-index:1"><FONT color="#FFFFFF">sdfsldfjsldkfnsg</FONT></DIV>

    If anyone has any ideas, you help would be very appreciated! Thank v much

    Chris Kenning
    ck@carrot.com

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The simplest solution would be just to adjust the coordinates using a text editor:

    Code:
    <DIV id="Layer1" style="position:absolute; left:644px; top:475px; width:191px; height:213px; z-index:1"><FONT color="#FFFFFF">sdfsldfjsldkfnsg</FONT></DIV>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Oct 2005
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes, I had thought of doing that, However the site contains many pages that run off this template, and would become quite confusing if each one had to be adjusted this way!

    I'm not quite sure why its doing this, and it doesn't seem to be anything to with padding, but if you have anymore suggestions, they would be gratefully received!

    All the best

    Chris Kenning

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •