SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist spoondevil's Avatar
    Join Date
    Jun 2001
    Location
    Harlow, Essex, UK
    Posts
    426
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Layers Changing Position

    I've created a site, and when viewed as a fullscreen with a resolution of 1600x1200 The transparent flash movie is in the exact placement, but if it's not on a fullscreen, or the resolution is higher/lower, then it is all off.

    I am using this code for the layer:
    Code:
    <div id="Layer1" style="position:absolute; width:565px; height:442px; z-index:1; left: 539px; top: 256px;">Flash Movie</div>
    I've never played with layers before, and this has really stumped me. Ideally, as the site is a window centerized based, the left and top parameteres would be in reference to the center of that window.

    Is this possible, or any other way?!?


    Thanks
    GŁnter

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,555
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    Have a look at this thread which explains how to centre horizontally and vertically.

    http://www.sitepoint.com/forums/showthread.php?t=165266

    Paul

  3. #3
    SitePoint Evangelist spoondevil's Avatar
    Join Date
    Jun 2001
    Location
    Harlow, Essex, UK
    Posts
    426
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks alot - It worked wonders!!!


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
  •